/* LunaFace: strona studia. Kolory i fonty są tymczasowe, do podmiany po
   otrzymaniu logo; zmienia się je tylko w :root. */

@font-face {
  font-family: 'Cormorant Garamond';
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-weight: 500;
  font-style: italic;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-weight: 500;
  font-style: italic;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext-500-italic.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Taken from the studio's photos: warm wood, candlelight, cream linen. */
:root {
  --ink: #2b211c;
  --ink-soft: #6b5a50;
  --accent: #8a5a3b; /* caramel wood */
  --accent-dark: #3a2a22; /* espresso */
  --gold: #c08a4e; /* candlelight */
  --wash: #f6efe6;
  --wash-2: #ece2d5;
  --card: #fffaf4;
  --line: #e2d4c3;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 12vw, 140px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--wash);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  color: var(--accent-dark);
  margin: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 92px);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(36px, 5vw, 60px);
}

h3 {
  font-size: 28px;
}

em {
  font-style: italic;
  color: var(--accent);
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  display: block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 34em;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--card);
}

/* ---------- placeholders for the studio's own logo and photos ---------- */

.ph {
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgb(192 138 78 / 8%) 14px 28px),
    var(--wash-2);
  border: 1px dashed var(--line);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid var(--accent-dark);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--accent-dark);
  color: var(--wash);
}

.btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-dark);
  color: var(--wash);
}

.btn .arrow {
  transition: transform 0.4s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ---------- header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition:
    background 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.header.scrolled {
  background: rgb(246 241 236 / 88%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: height 0.4s var(--ease);
}

.header.scrolled .header-inner {
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand .logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--wash), 0 0 0 3px var(--line);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
}

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

.nav a:not(.btn) {
  position: relative;
  font-size: 15px;
  text-decoration: none;
}

.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav .btn {
  min-height: 44px;
  padding: 0 22px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  margin: 6px auto;
  background: var(--ink);
  transition: transform 0.4s var(--ease);
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }
  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: var(--wash);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.4s var(--ease),
      visibility 0.4s;
  }
  .nav a:not(.btn) {
    font-family: var(--font-display);
    font-size: 34px;
  }
  .menu-open .nav {
    opacity: 1;
    visibility: visible;
  }
  .menu-open .menu-toggle span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }
  .menu-open .menu-toggle span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }
}

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 120px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 28px;
}

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

/* The arch: the shape most studios of this kind use for a portrait. */
.hero-photo {
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 24px 24px;
  overflow: hidden;
}

.hero-photo img {
  object-position: center top;
}

@keyframes slow-zoom {
  to {
    transform: scale(1.06);
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    max-width: 380px;
    width: 100%;
    margin-inline: auto;
  }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 22px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee 38s linear infinite;
}

.marquee span {
  font-family: var(--font-display);
  font-size: 30px;
  font-style: italic;
  white-space: nowrap;
  color: var(--accent);
}

.marquee span::after {
  content: '✦';
  margin-left: 48px;
  font-size: 14px;
  font-style: normal;
  color: var(--gold);
  vertical-align: middle;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- sections ---------- */

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

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
}

.about-photo img {
  object-position: center 20%;
}

.todo {
  padding: 2px 6px;
  border-radius: 4px;
  background: #fff3cd;
  color: #7a5b00;
  font-size: 0.9em;
}

.facts {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent-dark);
}

.fact span {
  font-size: 14px;
  color: var(--ink-soft);
}

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

/* ---------- treatments ---------- */

.treatments {
  background: var(--card);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--wash);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.6s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
}

.card .ph {
  aspect-ratio: 4 / 3;
  border: none;
  transition: transform 1.4s var(--ease-out);
}

.card:hover .ph {
  transform: scale(1.035);
}

.card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.card:hover .card-media img {
  transform: scale(1.035);
}

.card-media {
  overflow: hidden;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
}

.card-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

.card-meta strong {
  color: var(--accent-dark);
  font-weight: 500;
}

/* ---------- price list ---------- */

.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px 64px;
}

.prices h3 {
  margin-bottom: 18px;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

/* Dotted leader between the name and the price. */
.price-list li::after {
  content: '';
  order: 1;
  flex: 1;
  border-bottom: 1px dotted var(--line);
  min-width: 20px;
}

.price-list .name {
  order: 0;
}

.price-list .time {
  order: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.price-list .price {
  order: 2;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
}

.prices-note {
  margin-top: 40px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- contact ---------- */

.contact {
  background: var(--accent-dark);
  color: var(--wash);
}

.contact h2,
.contact em {
  color: var(--wash);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: end;
}

.contact address {
  font-style: normal;
  font-size: 19px;
  line-height: 1.8;
}

.contact .btn {
  border-color: var(--wash);
}

.contact .btn-solid {
  background: var(--wash);
  color: var(--accent-dark);
}

.contact .btn-ghost {
  color: var(--wash);
}

.contact .btn-ghost:hover {
  background: var(--wash);
  color: var(--accent-dark);
}

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

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

.footer {
  padding: 32px 0;
  background: var(--accent-dark);
  color: rgb(246 241 236 / 60%);
  font-size: 14px;
  border-top: 1px solid rgb(246 241 236 / 12%);
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- treatment page ---------- */

.page-hero {
  padding: 160px 0 64px;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.breadcrumbs a {
  text-decoration: none;
}

.page-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.prose h2 {
  font-size: 38px;
  margin: 48px 0 18px;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 6px;
}

.aside {
  position: sticky;
  top: 100px;
  padding: 32px;
  border-radius: 24px;
  background: var(--card);
}

.aside dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  margin: 0 0 24px;
}

.aside dt {
  color: var(--ink-soft);
}

.aside dd {
  margin: 0;
  font-weight: 500;
}

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

.faq summary {
  cursor: pointer;
  font-weight: 500;
}

@media (max-width: 860px) {
  .page-grid {
    grid-template-columns: 1fr;
  }
  .aside {
    position: static;
  }
}

/* ---------- reviews ---------- */

.rating {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 14px;
  align-items: center;
}

.rating strong {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent-dark);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.15em;
}

.rating span:last-child {
  font-size: 14px;
  color: var(--ink-soft);
}

/* One review at a time, centred, changing every 8 s (after
   malgorzatakraus-academy.pl): the old one fades out quickly, the new one
   rises in more slowly; a hairline fills up until the next. */
.slider {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.slides {
  display: grid;
  gap: 48px;
}

.slide {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* With script, the slides stack in one cell and take turns. */
.js .slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.js .slide.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition:
    opacity 0.9s ease 0.4s,
    transform 0.9s var(--ease-out) 0.4s;
}

.slide .todo {
  margin-bottom: 18px;
}

.slide-stars {
  color: var(--gold);
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  font-size: 12px;
  margin-bottom: 26px;
}

.slide blockquote {
  margin: 0 0 28px;
}

.slide-quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.35;
  color: var(--accent-dark);
  margin: 0 0 16px;
}

.slide-rest {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--ink-soft);
}

.slide figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slide-who {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.slide-what {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.slider-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 48px;
}

.slider-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  color: var(--accent-dark);
  font-size: 16px;
  cursor: pointer;
  transition:
    background 0.4s,
    color 0.4s;
}

.slider-controls button:hover {
  background: var(--accent-dark);
  color: var(--wash);
}

.slider-count {
  min-width: 7em;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
}

.slider-progress {
  display: none;
  position: relative;
  width: min(220px, 50%);
  height: 1px;
  margin: 26px auto 0;
  background: var(--line);
  overflow: hidden;
}

.slider-progress i {
  position: absolute;
  inset: 0;
  background: var(--accent-dark);
  transform: scaleX(0);
  transform-origin: left;
}

.js .slider-controls {
  display: flex;
}

.js .slider-progress {
  display: block;
}

.slider-more {
  margin-top: 48px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .js .slide,
  .js .slide.is-on {
    transition: none;
  }
}

/* ---------- map ---------- */

.map {
  position: relative;
  margin-top: 64px;
  height: clamp(280px, 40vw, 420px);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  /* A quiet street grid stands in for the map until it loads. */
  background:
    linear-gradient(90deg, rgb(246 241 236 / 8%) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgb(246 241 236 / 8%) 1px, transparent 1px) 0 0 / 48px 48px,
    rgb(246 241 236 / 6%);
}

.map.loaded {
  display: block;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-pin {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--gold);
  box-shadow: 0 0 0 10px rgb(192 138 78 / 20%);
  animation: pin 2.4s var(--ease) infinite;
}

@keyframes pin {
  50% {
    box-shadow: 0 0 0 18px rgb(192 138 78 / 5%);
  }
}

.map-fallback {
  font-size: 14px;
  color: rgb(246 241 236 / 70%);
}

/* ---------- motion ----------
   After malgorzatakraus-academy.pl: slow rises with a soft stop, photos
   uncovered like a curtain while they settle from 116 %, a gentle zoom on
   hover and a light parallax. js/main.js adds .visible as things scroll in,
   staggers neighbours through --delay, and .done once the entrance is over. */

:root {
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-curtain: cubic-bezier(0.65, 0, 0.25, 1);
}

.img-reveal {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* One transform for all three effects: parallax shift (--py), entrance and
   parallax scale (--ps), hover zoom (--hz). */
.img-reveal img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(var(--py, 0px)) scale(calc(var(--ps, 1) * var(--hz, 1)));
}

.img-reveal.done:hover img {
  --hz: 1.035;
}

.eyebrow::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  margin-left: 14px;
  vertical-align: middle;
  background: currentColor;
  transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(38px);
    transition:
      opacity 1s var(--ease-out) var(--delay, 0s),
      transform 1.15s var(--ease-out) var(--delay, 0s);
  }

  .js .reveal.visible {
    opacity: 1;
    transform: none;
  }

  /* After the entrance, hover reacts at once instead of after the delay. */
  .js .reveal.done {
    transition-delay: 0s;
  }

  .js .card.reveal.done:hover {
    transform: translateY(-6px);
    transition: transform 0.6s var(--ease);
  }

  .js .img-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.5s var(--ease-curtain) var(--delay, 0s);
  }

  .js .img-reveal img {
    --ps: 1.16;
    transition: transform 2.2s var(--ease-out) var(--delay, 0s);
  }

  .js .img-reveal.visible {
    clip-path: inset(0 0 0 0);
  }

  .js .img-reveal.visible img {
    --ps: 1;
  }

  .js .img-reveal.done img {
    transition: transform 0.6s var(--ease-out);
  }

  .js .eyebrow::after {
    transform: scaleX(0);
    transition: transform 1.5s var(--ease-out) calc(var(--delay, 0s) + 0.3s);
  }

  .js .eyebrow.visible::after {
    transform: scaleX(1);
  }
}

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

/* ---------- contact links ---------- */

.contact address a {
  text-decoration: none;
  border-bottom: 1px solid rgb(255 255 255 / 25%);
}

/* ---------- side rail: Facebook, Instagram, phone ---------- */

.side-rail {
  position: fixed;
  right: 16px;
  top: 50%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 40px;
  background: var(--accent-dark);
  transform: translateY(-50%);
  box-shadow: 0 8px 26px rgb(0 0 0 / 18%);
}

.side-rail a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wash);
  color: var(--accent-dark);
  transition: transform 0.3s var(--ease-out);
}

.side-rail a:hover,
.side-rail a:focus-visible {
  transform: scale(1.12);
}

.side-rail svg {
  width: 19px;
  height: 19px;
}

@media (max-width: 600px) {
  .side-rail {
    right: 8px;
    gap: 6px;
    padding: 8px 6px;
  }
  .side-rail a {
    width: 34px;
    height: 34px;
  }
  .side-rail svg {
    width: 16px;
    height: 16px;
  }
}

/* Slides in from the right edge a moment after the page appears. */
@media (prefers-reduced-motion: no-preference) {
  .side-rail {
    animation: rail-in 1s var(--ease-out) 0.8s both;
  }
}

@keyframes rail-in {
  from {
    transform: translate(calc(100% + 24px), -50%);
  }
}

/* The open mobile menu covers it. */
.menu-open .side-rail {
  visibility: hidden;
}
