/* Section dots down the right edge. At rest only the gold "you are here" dot shows, riding a faint rail;
   hover (or drag) and the rail firms up and the other dots pop in one after another, top to bottom.
   The whole strip is a wide, invisible hit area, so clicking near a dot counts; clicks and drags
   always land on a dot (js/home.js). */
.scroll-progress {
  position: fixed;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 24px;
  height: 200px;
  z-index: 20;
  cursor: pointer;
  touch-action: none;
}

.scroll-progress::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 1px;
  translate: -50% 0;
  background: linear-gradient(transparent, rgba(160, 160, 160, 0.35) 15%, rgba(160, 160, 160, 0.35) 85%, transparent);
  opacity: 0.4;
  scale: 1 0.6;
  transition:
    opacity 0.35s ease,
    scale 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.scroll-progress:is(:hover, :active)::before {
  opacity: 1;
  scale: 1;
}

.scroll-tick {
  position: absolute;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: rgba(200, 200, 200, 0.75);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  scale: 0;
}

.scroll-progress:is(:hover, :active) .scroll-tick {
  opacity: 1;
  scale: 1;
}

.scroll-progress-thumb {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: #f4a300;
  box-shadow:
    0 0 0 3px rgba(244, 163, 0, 0.18),
    0 0 12px rgba(244, 163, 0, 0.45);
  transform: translateY(0px);
  pointer-events: none; /* the strip handles clicks and drags */
  transition:
    transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1),
    scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
}

/* the "you are here" dot breathes, and a ring ripples out from it every couple of seconds */
.scroll-progress-thumb {
  animation: scroll-breathe 2.4s ease-in-out infinite;
}
.scroll-progress-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid #f4a300;
  animation: scroll-ripple 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
@keyframes scroll-breathe {
  50% {
    box-shadow:
      0 0 0 4px rgba(244, 163, 0, 0.25),
      0 0 18px rgba(244, 163, 0, 0.7);
  }
}
@keyframes scroll-ripple {
  from {
    opacity: 0.8;
    scale: 1;
  }
  to {
    opacity: 0;
    scale: 2.8;
  }
}

.scroll-progress:is(:hover, :active) .scroll-progress-thumb {
  scale: 1.2;
  box-shadow:
    0 0 0 4px rgba(244, 163, 0, 0.22),
    0 0 16px rgba(244, 163, 0, 0.55);
}

.the-house {
  scroll-margin-top: 100px;
}

header nav {
  background-color: transparent;
  position: fixed;
  width: 100%;
  height: auto;
  z-index: 16; /* above the showcase panel and its tab (15), so the site menu drops over them */
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  color: white;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

nav li:first-child a {
  text-transform: none;
  color: white; /* logo doesn't take the hover colour */

  display: flex;
  align-items: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 25px;
  gap: 10px;
}

nav ul li img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  background-color: var(--logo-bg, white); /* Admin > Settings > Logo */
  border-radius: 55% 45% 45% 55% / 45% 55% 45% 55%;
  padding: 10px;
}

nav ul li {
  text-transform: uppercase;
  margin: 20px;
  align-items: center;
  transition: color 0.5s ease-in-out;
}

nav ul li:hover {
  cursor: pointer;
  color: #f4a300;
}

nav li:first-child + li {
  margin-left: auto;
}

nav ul li a {
  text-decoration: none;
  color: inherit; /* follow the li so its hover colour applies to links too */
}

/*  */
.hero,
.the-house {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/hero.jpg");
  background-size: cover;
  background-position: center;
  animation: slow-zoom 3s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.hero-overlay,
.house-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 12, 20, 1), rgba(10, 12, 20, 0.35) 50%, rgba(10, 12, 20, 0.25)),
    linear-gradient(to right, rgba(10, 12, 20, 0.75), transparent 65%);
}

.house-overlay {
  background:
    linear-gradient(to bottom, rgba(10, 12, 20, 1), rgba(10, 12, 20, 0.35) 50%, rgba(10, 12, 20, 0.25)),
    linear-gradient(to left, rgba(10, 12, 20, 0.75), transparent 65%);
}

.hero-content,
.house-content {
  color: white;
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
}

.hero-content div h6,
.house-content div h6 {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.3em;
  color: #f4a300;
  font-size: 10px;
  text-transform: uppercase;
}

.hero-content > div:first-child,
.house-content > div:first-child {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-content > div:first-child::before,
.house-content > div:first-child::before {
  content: "";
  height: 1px;
  width: 40px;
  background-color: #f4a300;
}

.hero-content,
.house-content {
  max-width: 715px;
}

.hero-content h1,
.house-content h2 {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 3rem;
  line-height: 0.9;
  margin-bottom: 25px;
  margin-top: 25px;
  color: #f5f0e1;
}

.hero-content > div:last-child {
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.hero-content p,
.house-content p {
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(245, 240, 225, 0.75);
}

.hero-content button,
.house-content button {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero-content h1,
  .house-content h2 {
    font-size: 6rem;
  }

  .hero-content > div:last-child {
    flex-direction: row;
    align-items: center;
  }
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The House: text block on the right, paragraphs stacked */
.house-content {
  margin-left: auto;
  padding-left: 0;
  padding-right: 40px;
}

.house-content {
  padding-top: 40px;
}

.house-content strong {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.25em; /* serif runs small next to the mono text */
  color: #f5f0e1;
  font-weight: 600;
}

/* Paragraph slider: slides are stacked and animated by home.js */
.house-slider {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Slides sit on top of each other in one grid cell; the box keeps the tallest one's height */
.house-slides {
  display: grid;
}

.house-slides p {
  grid-area: 1 / 1;
  max-width: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #f5f0e1;
  opacity: 0;
  transform: translateX(40px);
  filter: blur(6px);
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.8s cubic-bezier(0.19, 1, 0.22, 1),
    filter 0.45s ease;
}

.house-slides p.is-before {
  transform: translateX(-40px);
}

/* incoming slide starts a beat after the outgoing one begins to leave */
.house-slides p.is-active {
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
  transition-delay: 0.12s;
}

.house-slider-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.house-slider-bar {
  flex: 1;
  height: 2px;
  padding: 10px 0; /* bigger hit area; only the 2px line is painted */
  background-color: rgba(245, 240, 225, 0.2);
  background-clip: content-box;
  cursor: grab;
  touch-action: none;
  transition: height 0.3s ease;
}

.house-slider-bar:active {
  cursor: grabbing;
}

.house-slider-thumb {
  width: calc(100% / 3); /* one third per paragraph */
  height: 100%;
  border-radius: 999px;
  background-color: #f4a300;
  transition:
    box-shadow 0.3s ease,
    transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.house-next {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition:
    background-color 0.3s ease,
    transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.house-next svg {
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.house-next.is-last svg {
  transform: rotate(180deg);
}

/* Hovering anywhere on the text draws the eye to the controls */
.house-content:hover .house-slider-bar {
  height: 4px;
}

.house-content:hover .house-slider-thumb {
  box-shadow: 0 0 12px rgba(244, 163, 0, 0.8);
}

.house-content:hover .house-next {
  transform: scale(1.1);
  animation: house-pulse 1.6s ease-out infinite;
}

.house-content:hover .house-next:not(.is-last) svg {
  animation: house-nudge 1.6s ease-in-out infinite;
}

.house-next:active {
  transform: scale(0.95);
}

@media (prefers-reduced-motion: reduce) {
  .house-slides p {
    transform: none !important;
    filter: none !important;
  }

  .house-content:hover .house-next,
  .house-content:hover .house-next svg {
    animation: none;
  }
}

@media (min-width: 768px) {
  .house-content h2 {
    font-size: 4rem;
  }
}

/* "Hover to play" hint under the scissors; fades out once the video runs */
.house-hint {
  position: absolute;
  z-index: 2; /* stay above the footer fade */
  left: 40px;
  bottom: 40px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.05;
  color: rgba(245, 240, 225, 0.7);
  pointer-events: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.house-hint svg {
  color: #f4a300;
  animation: hint-bob 2.4s ease-in-out infinite;
}

.the-house.is-playing .house-hint {
  opacity: 0;
  transform: translateY(8px);
}

@media (hover: none) {
  .house-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .house-hint svg {
    animation: none;
  }
}

/* --- FOOTER STYLING --- */
footer {
  position: relative;
  /* the top starts in the colour of the section above (--footer-from, set by home.js) and blends into
     the footer's own navy, so scrolling into it is one continuous change of colour */
  --footer-from: var(--footer-base, rgb(10, 12, 20));
  background:
    radial-gradient(ellipse 60% 40% at 50% 45vh, rgba(244, 163, 0, 0.06), transparent),
    linear-gradient(to bottom, var(--footer-from), rgb(10, 12, 20) 45vh), rgb(10, 12, 20);
  transition: --footer-from 0.6s ease; /* same pace as the section above dimming */
  color: rgba(245, 240, 225, 0.6);
  /* full screen tall: the top half is the "peek" stop, the whole thing is the "full" stop */
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 140px 40px 32px; /* clears the fixed nav in full mode */
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
}

/* Fades the section above into the footer instead of a hard edge */
footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 180px;
  /* softens the bottom of the section above into the same colour the footer starts in */
  background: linear-gradient(to bottom, transparent, var(--footer-from, rgb(10, 12, 20)));
  pointer-events: none;
}

/* Oversized fading wordmark along the bottom */
.footer-wordmark {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(4rem, 17vw, 17rem);
  line-height: 0.85;
  white-space: nowrap;
  text-align: center;
  margin-top: auto;
  margin-bottom: 32px;
  background: linear-gradient(to bottom, rgba(245, 240, 225, 0.14), rgba(245, 240, 225, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 64px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  max-width: 22rem;
  margin: 20px 0 28px;
  line-height: 1.6;
}

.footer-socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(245, 240, 225, 0.2);
  color: #f5f0e1;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  background-color: #f4a300;
  border-color: #f4a300;
  color: #1a1a1a;
  transform: translateY(-3px);
}

.footer-col h6 {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f4a300;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: rgba(245, 240, 225, 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #f4a300;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 240, 225, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 225, 0.62);
}

/* the footer's top colour is animatable, so it can dim in step with the section above */
@property --footer-from {
  syntax: "<color>";
  inherits: true;
  initial-value: rgb(10, 12, 20);
}

/* while the section above is dimmed (brightness 0.6 below), the footer starts in that same dimmed colour */
body.footer-peek footer {
  --footer-from: var(--footer-dim, rgb(6, 7, 12));
}

/* Sections blur back while the footer is in focus (toggled by home.js) */
section {
  transition: filter 0.6s ease;
}

body.footer-peek section {
  filter: blur(8px) brightness(0.6);
  cursor: pointer; /* click to go back to it */
}

body.footer-peek section * {
  cursor: inherit;
}

/* Top-left nav logo steps aside once the footer (with its own logo) fills the screen */
header nav li:first-child {
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* the whole nav steps aside once the footer fills the screen; the footer's arrow takes you back up */
header nav {
  transition: opacity 0.5s ease;
}

body.footer-full header nav {
  opacity: 0;
  pointer-events: none;
}

.footer-up {
  /* in the empty space left of the wordmark, above the bottom line */
  position: absolute;
  z-index: 3;
  left: 40px;
  bottom: 200px;
  width: 56px;
  height: 56px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(245, 240, 225, 0.2);
  background: rgba(10, 12, 20, 0.6);
  color: rgba(245, 240, 225, 0.85);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.19, 1, 0.22, 1),
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

body.footer-full .footer-up {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.footer-up:hover,
.footer-up:focus-visible {
  background-color: #f4a300;
  border-color: #f4a300;
  color: #1a1a1a;
}

.footer-up svg {
  display: block; /* the svg clips its own content, so the arrow can fly out the top and back in from below */
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

/* two gold rings ripple out of it, one after the other */
.footer-up::before,
.footer-up::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid #f4a300;
  opacity: 0;
  pointer-events: none;
}

/* while it's showing: the rings ripple, the inside breathes a gold glow, and the arrow launches up and out
   of the circle then slides back in from the bottom */
body.footer-full .footer-up {
  animation: footer-up-glow 2.8s ease-in-out infinite;
}

body.footer-full .footer-up::before {
  animation: footer-up-ripple 2.8s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

body.footer-full .footer-up::after {
  animation: footer-up-ripple 2.8s cubic-bezier(0.19, 1, 0.22, 1) 0.35s infinite;
}

body.footer-full .footer-up svg path {
  animation: footer-up-launch 2.8s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

/* on hover it settles: gold fill, arrow held still and lifted */
.footer-up:hover,
.footer-up:hover svg path {
  animation: none !important;
}

.footer-up:hover svg {
  transform: translateY(-3px);
}

@keyframes footer-up-ripple {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  60%,
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

@keyframes footer-up-glow {
  0%,
  100% {
    box-shadow: inset 0 0 0 0 rgba(244, 163, 0, 0), 0 0 0 0 rgba(244, 163, 0, 0);
    border-color: rgba(245, 240, 225, 0.2);
  }
  30% {
    box-shadow: inset 0 -10px 18px -4px rgba(244, 163, 0, 0.45), 0 0 22px -2px rgba(244, 163, 0, 0.35);
    border-color: rgba(244, 163, 0, 0.7);
  }
}

@keyframes footer-up-launch {
  0%,
  20% {
    transform: translateY(0);
    opacity: 1;
  }
  32% {
    transform: translateY(3px); /* crouch */
  }
  48% {
    transform: translateY(-24px); /* shoots out the top */
    opacity: 0;
  }
  49% {
    transform: translateY(24px); /* reappears below */
    opacity: 0;
  }
  70%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.footer-full .footer-up,
  body.footer-full .footer-up::before,
  body.footer-full .footer-up::after,
  body.footer-full .footer-up svg path {
    animation: none !important;
  }
}

body.footer-full header nav li:first-child {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

/* Hover text roll (built by home.js). The copy is a text-shadow one line below, clipped until it rolls up. */
.roll {
  display: inline-block;
  overflow: hidden;
  line-height: 1.2;
  vertical-align: top;
}

.roll > span {
  display: inline-block;
  text-shadow: 0 1.5em currentColor;
}

.roll.is-rolling > span {
  animation: roll-up 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Tablet buttons can wrap their labels. Keep those labels plain instead of rolling a one-line shadow copy. */
@media (min-width: 701px) and (max-width: 900px) {
  nav ul li {
    margin: 12px;
  }

  button .roll,
  nav .roll {
    overflow: visible;
  }

  button .roll > span,
  nav .roll > span {
    text-shadow: none;
  }

  button .roll.is-rolling > span,
  nav .roll.is-rolling > span {
    animation: none;
  }
}

.footer-appointment {
  color: #f4a300;
}

.footer-phone a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-phone svg {
  flex: 0 0 auto;
  color: #f4a300;
}

.footer-email a,
.footer-whatsapp a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-email svg,
.footer-whatsapp svg {
  flex: 0 0 auto;
  color: #f4a300;
}

.footer-visit ul {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 8px;
  align-items: center;
  justify-content: start;
}

.footer-visit ul > li:nth-child(-n + 3) {
  grid-column: 1 / -1;
}

.footer-contact-item {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.footer-contact-item > a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(245, 240, 225, 0.2);
  border-radius: 50%;
  color: rgba(245, 240, 225, 0.75);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    translate 0.25s ease;
}

.footer-contact-item > a:hover,
.footer-contact-item > a:focus-visible {
  border-color: #f4a300;
  background: rgba(244, 163, 0, 0.14);
  color: #f4a300;
  translate: 0 -3px;
}

.footer-contact-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 2;
  display: grid;
  gap: 7px;
  width: 220px;
  padding: 14px;
  border: 1px solid rgba(244, 163, 0, 0.35);
  border-radius: 10px;
  background: #0e101a;
  color: #f5f0e1;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  translate: -50% 4px;
  scale: 0.96;
  transform-origin: bottom center;
  transition:
    opacity 0.2s ease,
    translate 0.2s ease,
    scale 0.2s ease;
}

.footer-contact-tooltip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 9px;
}

.footer-contact-item:hover .footer-contact-tooltip,
.footer-contact-item:focus-within .footer-contact-tooltip {
  opacity: 1;
  pointer-events: auto;
  translate: -50% 0;
  scale: 1;
}

.footer-contact-tooltip strong {
  color: #f4a300;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-contact-tooltip > span:not(.footer-contact-actions) {
  overflow-wrap: anywhere;
  color: rgba(245, 240, 225, 0.8);
  line-height: 1.4;
}

.footer-contact-actions {
  display: flex;
  gap: 6px;
}

.footer-contact-actions button,
.footer-contact-actions a {
  min-height: 0;
  padding: 6px 9px;
  border: 1px solid rgba(245, 240, 225, 0.18);
  border-radius: 5px;
  background: transparent;
  color: rgba(245, 240, 225, 0.75);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-contact-actions button:hover,
.footer-contact-actions a:hover {
  border-color: #f4a300;
  color: #f4a300;
}

.contact-float {
  position: fixed;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 20;
}

.contact-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(244, 163, 0, 0.55);
  border-radius: 999px;
  background: rgba(10, 12, 20, 0.84);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  color: #f5f0e1;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    translate 0.25s ease;
}

.contact-float:hover .contact-bubble,
.contact-bubble:focus-visible {
  border-color: #f4a300;
  background: #f4a300;
  color: #1a1a1a;
  translate: 0 -3px;
}

.contact-card {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: grid;
  gap: 10px;
  width: min(270px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(244, 163, 0, 0.35);
  border-radius: 14px;
  background: rgba(10, 12, 20, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  color: rgba(245, 240, 225, 0.7);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  translate: 0 8px;
  scale: 0.96;
  transform-origin: bottom right;
  transition:
    opacity 0.2s ease,
    translate 0.25s ease,
    scale 0.25s ease;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.contact-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 12px;
}

.contact-float:hover .contact-card,
.contact-float:focus-within .contact-card {
  opacity: 1;
  pointer-events: auto;
  translate: 0 0;
  scale: 1;
}

.contact-card strong {
  color: #f5f0e1;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
}

.contact-card a,
.contact-card span {
  line-height: 1.45;
}

.contact-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f5f0e1;
  text-decoration: none;
}

.contact-card a:hover {
  color: #f4a300;
}

.contact-card-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.contact-card-socials a {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(245, 240, 225, 0.18);
  border-radius: 50%;
}

.contact-card-more {
  padding-top: 8px;
  border-top: 1px solid rgba(245, 240, 225, 0.12);
  color: #f4a300 !important;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-book {
  margin-top: 12px;
}

/* Nav link for the section currently on screen (set by home.js) */
nav ul li a.is-active {
  color: #f4a300;
}

.house-tag {
  left: 40px;
}

.bybit span {
  /* upright letters look off-centre: the glyphs sit to one side of their boxes (room for tails like the y's),
     so nudge them back in line with the bar while they stand */
  --upright-nudge: 7px;
  display: inline-block;
  pointer-events: none;
  /* lying down again: quick, in reverse order */
  transition:
    rotate 0.35s cubic-bezier(0.19, 1, 0.22, 1) calc((4 - var(--i)) * 40ms),
    translate 0.35s cubic-bezier(0.19, 1, 0.22, 1) calc((4 - var(--i)) * 40ms);
}

/* while the scissors video plays, the whole hover sequence loops every 5s:
   ripple + glow, word spins as letters stand upright, hold glowing, lie back down.
   (hovering Bybit itself still takes over with the normal hover effect) */
.the-house.is-playing .bybit:not(:hover) {
  animation: bybit-loop-word 5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.the-house.is-playing .bybit:not(:hover) span {
  animation: bybit-loop-letter 5s ease-in-out calc(var(--i) * 70ms) infinite;
}

/* --- SERVICES --- */
.services {
  position: relative;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: clip;
  padding: clamp(96px, 14vh, 140px) 40px clamp(24px, 5vh, 80px); /* top clears the fixed nav; shrinks on short screens */
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  /* light cream theme: the one light section on the site */
  background: radial-gradient(ellipse 50% 40% at 85% 20%, rgba(244, 163, 0, 0.12), transparent), #f5f0e1;
  color: #1a1a1a;
}

@media (min-width: 900px) {
  .services {
    grid-template-columns: 2fr 3fr;
    gap: 80px;
  }
}

.services-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.services-intro h6 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #1a1a1a; /* yellow text is too faint on cream; the line keeps the accent */
}

.services-intro h6::before {
  content: "";
  width: 40px;
  height: 1px;
  background-color: #f4a300;
}

.services-intro h2 {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.services-intro p {
  max-width: 26rem;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.7);
}

/* the site's buttons go cream on hover, which would vanish here */
.services button:hover {
  background-color: #1a1a1a;
  color: #f5f0e1;
}

.services-list {
  list-style: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.12);
}

.service {
  display: grid;
  grid-template-columns: 48px 1fr 40px;
  align-items: center;
  gap: 20px;
  padding: 20px 8px;
  border-top: 1px solid rgba(26, 26, 26, 0.12);
  transition: background-color 0.4s ease;
}

.service-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(26, 26, 26, 0.68);
  transition: color 0.4s ease;
}

.service h3 {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.1;
  transition:
    color 0.4s ease,
    translate 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.service p {
  margin-top: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.6);
  transition:
    color 0.4s ease,
    translate 0.5s cubic-bezier(0.19, 1, 0.22, 1) 0.03s;
}

.service-arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(26, 26, 26, 0.25);
  color: #1a1a1a;
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease,
    rotate 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.service:hover {
  background-color: rgba(244, 163, 0, 0.1);
}

.service:hover .service-num {
  color: #1a1a1a;
}

.service:hover h3 {
  translate: 10px;
}

.service:hover p {
  color: rgba(26, 26, 26, 0.85);
  translate: 10px;
}

.service:hover .service-arrow {
  background-color: #f4a300;
  border-color: #f4a300;
  color: #1a1a1a;
  rotate: -45deg;
}

/* Services carousel: 4 rows visible (height set by home.js), arrows + a thin side bar */
.services-carousel {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.services-viewport {
  flex: 1;
  overflow: hidden;
}

/* soft fade on whichever edge has more rows beyond it */
/* (just a hint: a short fade, and none at all while you're pointing at a row, so a highlighted row is never washed) */
.services-viewport.has-below {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
}

.services-viewport.has-above {
  -webkit-mask-image: linear-gradient(to top, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(to top, #000 calc(100% - 26px), transparent);
}

.services-viewport.has-above.has-below {
  -webkit-mask-image: linear-gradient(transparent, #000 26px, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(transparent, #000 26px, #000 calc(100% - 26px), transparent);
}

.services-viewport:has(.service:hover) {
  -webkit-mask-image: none;
  mask-image: none;
}

.services-list {
  will-change: transform; /* moved frame by frame by home.js */
}

.services-controls {
  order: -1; /* left of the list, in the gap by the intro, so the right edge stays clean */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.services-arrow {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid rgba(26, 26, 26, 0.25);
  color: #1a1a1a;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    opacity 0.3s ease;
}

.services .services-arrow:hover {
  background-color: #f4a300;
  border-color: #f4a300;
  color: #1a1a1a;
}

.services-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.services-arrow:disabled:hover {
  background-color: transparent;
  border-color: rgba(26, 26, 26, 0.25);
}

.services-track {
  flex: 1;
  width: 2px;
  padding: 0 12px; /* bigger hit area; only the 2px line is painted */
  background-color: rgba(26, 26, 26, 0.15);
  background-clip: content-box;
  cursor: grab;
  touch-action: none;
}

.services-track:active {
  cursor: grabbing;
}

.services-thumb {
  width: 100%;
  background-color: #f4a300;
  border-radius: 999px;
}

/* Service rows with a fabric pattern (set per row as --pattern): on hover it fades in out of the ivory,
   left to right so the text side stays clear, slides in, then drifts slowly like cloth moving past */
.service {
  position: relative;
  overflow: hidden;
}

.service > :not(.service-bg) {
  position: relative;
  z-index: 1;
}

.service-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* the pattern itself, at full strength (fading it see-through over the cream is what made it muddy);
   starts a quarter in so it stays near its natural size, with extra width to drift across */
.service-bg::before {
  content: "";
  position: absolute;
  inset: 0 -320px 0 25%;
  background: var(--pattern) center / cover no-repeat;
  filter: saturate(1.08) contrast(1.04);
  /* its left edge melts into the vignette instead of showing as a seam */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 180px);
  mask-image: linear-gradient(to right, transparent, #000 180px);
  transform: translateX(60px);
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

/* the vignette, like the hero's, in the image's own colour (--tone, measured by home.js): solid behind the
   text, fading across the image, with the image blurred softly where the text sits. Dark images get a deep
   tone and cream text; light ones a pale tone and dark text */
.service-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(var(--tone, 20, 14, 10), 1) 0%,
      rgba(var(--tone, 20, 14, 10), 0.88) 26%,
      rgba(var(--tone, 20, 14, 10), 0.5) 56%,
      rgba(var(--tone, 20, 14, 10), 0.12) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(var(--tone, 20, 14, 10), 0.3),
      transparent 30%,
      transparent 70%,
      rgba(var(--tone, 20, 14, 10), 0.3)
    );
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(to right, #000 45%, rgba(0, 0, 0, 0.55) 100%);
  mask-image: linear-gradient(to right, #000 45%, rgba(0, 0, 0, 0.55) 100%);
}

.service:hover .service-bg {
  opacity: 1;
}

/* no yellow wash on pattern rows: the pattern fades in instead */
.service.has-pattern:hover {
  background-color: transparent;
}

.service:hover .service-bg::before {
  transform: translateX(0);
  animation: pattern-drift 16s linear 0.8s infinite alternate;
}

/* over a dark pattern the text turns cream, easing across as the pattern fades in */
.service.has-pattern :is(.service-num, h3, p) {
  transition:
    color 0.6s ease,
    translate 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.service.has-pattern:not(.is-light-bg):hover h3 {
  color: #f5f0e1;
}

.service.has-pattern:not(.is-light-bg):hover p {
  color: rgba(245, 240, 225, 0.85);
}

.service.has-pattern:not(.is-light-bg):hover .service-num {
  color: #f4a300;
}

/* Row lines drawn on their own layer above the patterns, so a pattern (moving with the list mid-glide) can
   never paint over a line and make it flicker */
.service {
  border-top-color: transparent;
}

.service::after {
  content: "";
  position: absolute;
  top: 0; /* inside the row (it clips anything outside), right where its border was */
  left: 0;
  right: 0;
  height: 1px;
  z-index: 2;
  background-color: rgba(26, 26, 26, 0.12);
  pointer-events: none;
}

/* Tailor's tape across the House/Services seam. Marks are CSS gradients (1cm = 40px);
   home.js adds the centimetre numbers and slides the track sideways as you scroll. */
.tape {
  position: absolute;
  top: 0;
  left: -5vw;
  width: 110vw;
  height: 44px;
  z-index: 3;
  overflow: hidden;
  background-color: #f4a300;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    inset 0 -1px 0 rgba(26, 26, 26, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) rotate(-1.5deg);
  pointer-events: none;
}

.tape-track {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6400px;
  background-image:
    linear-gradient(to right, #1a1a1a 1px, transparent 1px), linear-gradient(to right, #1a1a1a 1px, transparent 1px),
    linear-gradient(to right, rgba(26, 26, 26, 0.6) 1px, transparent 1px);
  background-size:
    40px 50%,
    20px 34%,
    4px 20%;
  background-repeat: repeat-x;
  will-change: transform;
}

.tape-track span {
  position: absolute;
  bottom: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 600;
  color: #1a1a1a;
  transform: translateX(-50%);
}

/* the tape pokes past the screen edges; clip it at its own section so it can't widen the page.
   (overflow-x on body doesn't work: it gets handed to the viewport as "hidden", which can still be scrolled sideways) */
.services {
  overflow-x: clip;
}

/* Nav switches to dark text while it sits over a light section (toggled by home.js) */
body.nav-on-light nav ul {
  color: #1a1a1a;
}

body.nav-on-light nav li:first-child a {
  color: #1a1a1a;
}

/* yellow text is too faint on cream: over light sections, active/hovered links stay dark with a yellow underline */
body.nav-on-light nav ul li:not(:first-child, :has(button), .nav-home, .nav-more):hover,
body.nav-on-light nav ul li a.is-active {
  color: #1a1a1a;
  /* drawn as a background bar: a text underline doesn't reach into the hover-roll span */
  background: linear-gradient(#f4a300, #f4a300) left bottom / 100% 2px no-repeat;
  padding-bottom: 4px;
}

/* --- LOOKBOOK --- deep emerald palette: gold reads richest on green */
.lookbook {
  --emerald: #0f2a22;
  --emerald-light: #16392e;
  position: relative;
  min-height: 100vh;
  box-sizing: border-box;
  /* top clears the fixed nav; strip runs edge to edge. Spacing shrinks on short screens to stay one screen tall */
  padding: clamp(92px, 14vh, 120px) 0 clamp(20px, 5vh, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 3vh, 32px);
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(244, 163, 0, 0.12), transparent),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(22, 57, 46, 0.9), transparent), var(--emerald);
  color: #f5f0e1;
  overflow: hidden;
}

.lookbook-head {
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: end;
}

@media (min-width: 900px) {
  .lookbook-head {
    grid-template-columns: auto 1fr auto;
    gap: 64px;
  }
}

.lookbook-head h6 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f4a300;
}

.lookbook-head h6::before {
  content: "";
  width: 40px;
  height: 1px;
  background-color: #f4a300;
}

.lookbook-head h2 {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.9;
}

.lookbook-head h2 em {
  color: #f4a300;
}

.lookbook-head p {
  max-width: 24rem;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(245, 240, 225, 0.65);
}

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

.lookbook-count {
  margin-right: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(245, 240, 225, 0.62);
}

.lookbook-count b {
  font-weight: 400;
  color: #f4a300;
}

.lookbook-arrow {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid rgba(245, 240, 225, 0.3);
  color: #f5f0e1;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.lookbook .lookbook-arrow:hover {
  background-color: #f4a300;
  border-color: #f4a300;
  color: #1a1a1a;
}

/* Horizontal strip of arched cards; drag, swipe or arrows (home.js) */
.lookbook-strip {
  display: flex;
  gap: 28px;
  padding: 0 40px 40px; /* bottom room for the staggered cards */
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding: 0 40px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.lookbook-strip::-webkit-scrollbar {
  display: none;
}

.lookbook-strip.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none; /* snapping would fight the drag */
}

/* Look cards (built by home.js from site.config.js). Size follows screen height too, so the section fits one screen */
.look {
  --card-w: clamp(120px, min(22vw, calc((100vh - 500px) * 0.75)), 300px);
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  scroll-snap-align: start;
  cursor: pointer;
  outline: none;
}

.look:nth-child(even) {
  margin-top: 40px; /* editorial stagger */
}

.look-main {
  width: var(--card-w);
  flex-shrink: 0;
}

.look-img {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 6px 6px; /* arched top, like a doorway */
  background-color: var(--emerald-light);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate; /* keep the tint's blend inside the card */
}

/* the photo itself, on a layer that can zoom smoothly */
.look-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  transition:
    scale 0.9s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.3s ease;
}

.look-img.is-swapping::before {
  opacity: 0.2;
}

/* Tint: the photo takes the site's colours (gold fading into emerald) instead of its own,
   keeping all its light and shade; lifts on hover / when selected / open */
.look-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #f4a300 0%, #6f7a2c 35%, #0f2a22 75%);
  mix-blend-mode: color;
  transition: opacity 0.6s ease;
}

/* gold arch outline + bottom shade, drawn over the photo */
.look-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(244, 163, 0, 0);
  background: linear-gradient(to top, rgba(15, 42, 34, 0.55), transparent 45%);
  transition: box-shadow 0.5s ease;
}

.look figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.4rem;
  transition: translate 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.look figcaption span {
  font-family: "JetBrains Mono", monospace;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f4a300;
}

.look:is(:hover, .is-current, .is-open) .look-tint {
  opacity: 0;
}

.look:is(:hover, .is-current, .is-open) .look-img::after {
  box-shadow: inset 0 0 0 1px rgba(244, 163, 0, 0.9);
}

.look:hover .look-img::before {
  scale: 1.07;
}

.look:is(:hover, .is-current) figcaption {
  translate: 0 -6px;
}

/* Looks show their real colours under a custom cursor: a gold dot with an off-centre "Click!" (home.js) */
.look,
.look * {
  cursor: none;
}

.look-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.look-cursor.is-on {
  opacity: 1;
}

.look-cursor::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background-color: #f4a300;
  box-shadow: 0 0 0 4px rgba(244, 163, 0, 0.25);
}

.look-cursor span {
  position: absolute;
  left: 14px;
  top: -26px;
  padding: 3px 7px;
  border-radius: 999px;
  background-color: #f5f0e1;
  color: #1a1a1a;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  rotate: -6deg; /* a little off-kilter */
}

/* Detail view: a large look over a blurred, darkened page; stays until Esc / close / clicking the backdrop */
.look-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 40px;
}

.look-viewer[hidden] {
  display: none;
}

.look-viewer-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 42, 34, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s ease;
  cursor: zoom-out;
}

.look-viewer-panel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 380px);
  gap: 48px;
  align-items: center;
  max-width: 1000px;
  opacity: 0;
  scale: 0.94;
  transition:
    opacity 0.4s ease,
    scale 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  color: #f5f0e1;
}

.look-viewer.is-open .look-viewer-backdrop,
.look-viewer.is-open .look-viewer-panel {
  opacity: 1;
  scale: 1;
}

.look-viewer-photo {
  height: min(72vh, 640px);
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 8px 8px;
  background-color: #16392e;
  background-size: cover;
  background-position: center;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(244, 163, 0, 0.6);
  transition: opacity 0.2s ease;
}

.look-viewer-photo.is-swapping {
  opacity: 0.3;
}

.look-viewer-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.look-viewer-info h6 {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f4a300;
}

.look-viewer-info h3 {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 0.95;
}

.look-viewer-info p {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(245, 240, 225, 0.75);
}

.look-viewer-info ul {
  list-style: none;
  border-top: 1px solid rgba(245, 240, 225, 0.15);
}

.look-viewer-info li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(245, 240, 225, 0.15);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(245, 240, 225, 0.85);
}

.look-viewer-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.look-viewer-thumbs button {
  width: 52px;
  height: 70px;
  padding: 0;
  border-radius: 999px 999px 4px 4px;
  background-color: #16392e;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(245, 240, 225, 0.25);
  opacity: 0.55;
  transition:
    opacity 0.3s ease,
    border-color 0.3s ease;
}

.look-viewer .look-viewer-thumbs button:hover,
.look-viewer-thumbs button.is-active {
  opacity: 1;
  border-color: #f4a300;
  background-color: #16392e;
}

.look-viewer-steps {
  display: flex;
  gap: 24px;
  margin-top: 6px;
}

.look-viewer-step,
.look-viewer-close {
  padding: 6px 0;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(245, 240, 225, 0.35);
  color: #f5f0e1;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.look-viewer .look-viewer-step:hover,
.look-viewer .look-viewer-close:hover {
  background: none;
  color: #f4a300;
  border-color: #f4a300;
}

.look-viewer-close {
  position: absolute;
  top: -8px;
  right: 0;
}

@media (max-width: 800px) {
  .look-viewer-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
  }

  .look-viewer-photo {
    height: 48vh;
  }
}

/* Scrub bar under the strip, YouTube-style: a segment per look, hover for a preview frame, click/drag to move.
   Sits above the footer's fade, which used to wash it out. */
.lookbook-progress {
  position: relative;
  z-index: 2;
  margin: 0 40px;
  height: 3px;
  padding: 12px 0; /* bigger hit area; only the line is painted */
  background-color: rgba(245, 240, 225, 0.25);
  background-clip: content-box;
  cursor: pointer;
  touch-action: none;
  transition: height 0.25s ease;
}

.lookbook-progress:hover {
  height: 6px;
}

.lookbook-fill {
  height: 100%;
  background-color: #f4a300;
  box-shadow: 0 0 10px rgba(244, 163, 0, 0.5);
  transform-origin: left;
  transform: scaleX(0);
}

/* chapter gaps between looks */
.lookbook-ticks i {
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 3px;
  margin-left: -1px;
  background-color: var(--emerald);
}

/* the look in focus: its segment glows, with "03 Tailoring" underneath; glides along as the focus moves */
.lookbook-current {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 0;
  background-color: #f5f0e1;
  box-shadow: 0 0 12px rgba(245, 240, 225, 0.6);
  opacity: 0;
  pointer-events: none;
  transition:
    left 0.55s cubic-bezier(0.34, 1.3, 0.64, 1),
    width 0.55s ease,
    opacity 0.3s ease;
}

.lookbook-current.is-on {
  opacity: 1;
}

.lookbook-current span {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #f4a300;
}

.lookbook-preview {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background-color: rgba(15, 42, 34, 0.92);
  border: 1px solid rgba(244, 163, 0, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  translate: -50% 6px;
  transition:
    opacity 0.2s ease,
    translate 0.2s ease;
}

.lookbook-progress:hover .lookbook-preview {
  opacity: 1;
  translate: -50% 0;
}

.lookbook-preview-img {
  width: 72px;
  height: 96px;
  border-radius: 999px 999px 4px 4px;
  background-size: cover;
  background-position: center;
}

.lookbook-preview span {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #f5f0e1;
}

.lookbook-preview span b {
  font-weight: 400;
  color: #f4a300;
}

.lookbook-count i {
  font-style: normal;
}

/* Lookbook hint: the header arrows pulse a gold ring (and → nudges forward) until touched */
.lookbook-nav.is-hinting .lookbook-arrow {
  animation: arrow-hint 1.5s ease-out 3;
}

.lookbook-nav.is-hinting .lookbook-arrow[data-step="1"] {
  border-color: #f4a300;
  color: #f4a300;
}

.lookbook-nav.is-hinting .lookbook-arrow[data-step="1"] svg {
  animation: arrow-nudge 1.5s ease-in-out 3;
}

/* Nav login link: small person icon + a label that swaps Login / Sign up (home.js) */
.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-login svg {
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.nav-login:hover svg {
  opacity: 1;
}

/* both words share one grid cell (so the width fits the longer one); the hidden one waits below */
/* signed in: the name sits where "Login" was without widening the item (it may run into the space on its
   right); admins get a gold crown in place of the person icon */
.nav-login {
  position: relative;
}
.nav-account .swap {
  visibility: hidden;
}
.nav-name {
  position: absolute;
  left: 22px;
  top: 50%;
  translate: 0 -50%;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-crown {
  fill: none;
  stroke: #f4a300;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.swap {
  display: inline-grid;
  overflow: hidden;
  line-height: 1.2;
}

.swap > span {
  grid-area: 1 / 1;
  translate: 0 110%;
}

.swap > span.is-on {
  translate: 0 0;
  animation: swap-in 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.swap > span.was-on {
  animation: swap-out 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Lookbook: "Shop the collection" under the intro, "Shop this look" in the detail view */
.lookbook-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.lookbook-shop,
.look-viewer-shop {
  padding: 13px 26px;
  border-radius: 999px;
}

.lookbook-shop::after,
.look-viewer-shop::after {
  content: "\2192";
  margin-left: 10px;
}

.look-viewer-shop {
  align-self: flex-start;
  margin-top: 6px;
}

/* the home page, arriving from the login page: hidden in the section's colour, then fades in (home.js) */
html.arriving body {
  opacity: 0;
}

html.revealing body {
  transition: opacity 0.9s ease;
}

/* Nav "back to the top" arrow: hidden (and taking no room) on the hero, slides up into place once you've
   scrolled past it (body.past-hero, home.js). Gold and bobbing, like the House's "Hover" hint. */
nav ul li.nav-home {
  display: flex;
  max-width: 0;
  margin-right: 0;
  overflow: hidden;
  opacity: 0;
  translate: 0 10px;
  transition:
    max-width 0.5s cubic-bezier(0.19, 1, 0.22, 1),
    margin-right 0.5s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.4s ease,
    translate 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

body.past-hero nav ul li.nav-home {
  max-width: 20px;
  margin-right: 4px;
  opacity: 1;
  translate: 0 0;
}

.nav-home a {
  display: flex;
  padding: 4px 3px;
  color: #f4a300;
}

.nav-home svg {
  animation: hint-bob 2.4s ease-in-out infinite;
  transition: translate 0.3s ease;
}

.nav-home a:hover svg {
  translate: 0 -3px;
}

/* --- NAV "MORE" (sewing button) --- hover: the button spins, thread bits burst out, Gallery + Reviews pop in */
.nav-more {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-more-toggle,
.nav-more-toggle:hover {
  display: flex;
  padding: 6px;
  border-radius: 50%;
  background: none;
  color: inherit;
}

.nav-more-toggle {
  transition:
    rotate 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.3s ease;
}

.nav-more:is(:hover, .is-open) .nav-more-toggle {
  rotate: 180deg;
  scale: 1.15;
  color: #f4a300;
}

/* while on Gallery or Reviews, the button itself shows gold */
.nav-more:has(a.is-active) .nav-more-toggle {
  color: #f4a300;
}

/* the burst: eight short threads fly out from the button's centre and fade */
.nav-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
}

.nav-burst i {
  position: absolute;
  left: -3px;
  top: -1px;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background-color: #f4a300;
  opacity: 0;
}

.nav-burst i:nth-child(1) {
  rotate: 0deg;
}

.nav-burst i:nth-child(2) {
  rotate: 45deg;
}

.nav-burst i:nth-child(3) {
  rotate: 90deg;
}

.nav-burst i:nth-child(4) {
  rotate: 135deg;
}

.nav-burst i:nth-child(5) {
  rotate: 180deg;
}

.nav-burst i:nth-child(6) {
  rotate: 225deg;
}

.nav-burst i:nth-child(7) {
  rotate: 270deg;
}

.nav-burst i:nth-child(8) {
  rotate: 315deg;
}

.nav-burst i:nth-child(even) {
  width: 4px;
  background-color: #f5f0e1;
}

.nav-more:is(:hover, .is-open) .nav-burst i {
  animation: nav-burst 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.nav-more:is(:hover, .is-open) .nav-burst i:nth-child(even) {
  animation-duration: 0.8s;
}

/* the menu drops in just after the burst */
.nav-more-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
  padding: 8px;
  border-radius: 14px;
  background-color: rgba(10, 12, 20, 0.92);
  border: 1px solid rgba(244, 163, 0, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  scale: 0.8;
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* keeps the hover alive across the gap between the button and the menu */
.nav-more-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 18px;
}

.nav-more:is(:hover, .is-open, :focus-within) .nav-more-menu {
  opacity: 1;
  scale: 1;
  pointer-events: auto;
  transition-delay: 0.12s;
}

.nav-more.is-closing .nav-more-menu {
  opacity: 0;
  scale: 0.8;
  pointer-events: none;
}

.nav-more-menu a,
body.nav-on-light .nav-more-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 9px;
  background: none;
  color: #f5f0e1;
  font-size: 11px;
  letter-spacing: 0.15em;
  opacity: 0;
  translate: 0 -6px;
  transition:
    opacity 0.3s ease,
    translate 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.25s ease,
    color 0.25s ease;
}

.nav-more:is(:hover, .is-open, :focus-within) .nav-more-menu a {
  opacity: 1;
  translate: 0 0;
  transition-delay: 0.2s;
}

.nav-more:is(:hover, .is-open, :focus-within) .nav-more-menu a + a {
  transition-delay: 0.28s;
}

.nav-more-menu a:hover,
.nav-more-menu a.is-active,
body.nav-on-light .nav-more-menu a:hover,
body.nav-on-light .nav-more-menu a.is-active {
  background-color: rgba(244, 163, 0, 0.12);
  color: #f4a300;
  padding-bottom: 11px;
}

/* the signed-in account menu reuses the dropdown above; Log out gets its icon beside it */
.nav-account .nav-more-menu {
  left: auto;
  right: 26px; /* it sits at the screen's right edge, so it opens leftward instead of centring (and clear of the dots) */
  translate: 0 0;
  transform-origin: top right;
}
.nav-account .nav-more-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.nav-account .nav-more-menu svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Gallery and Reviews headings (shared) */
.gallery-head h6,
.reviews-head h6 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f4a300;
}

.gallery-head h6::before,
.reviews-head h6::before {
  content: "";
  width: 40px;
  height: 1px;
  background-color: #f4a300;
}

.gallery-head h2,
.reviews-head h2 {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.gallery-head h2 em,
.reviews-head h2 em {
  color: #f4a300;
}

/* --- REVIEWS --- deep wine, with gold and cream: rotating quotes on the left, a card for leaving one on the right */
.reviews {
  --wine: #2a0b14;
  min-height: 100vh;
  box-sizing: border-box;
  /* spacing shrinks on shorter screens so the whole form, Post button included, fits on one screen */
  padding: clamp(96px, 14vh, 140px) 40px clamp(24px, 5vh, 80px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(24px, 4vh, 48px);
  background:
    radial-gradient(ellipse 55% 45% at 8% 95%, rgba(244, 163, 0, 0.16), transparent),
    radial-gradient(ellipse 60% 50% at 95% 5%, rgba(122, 28, 52, 0.55), transparent), var(--wine);
  color: #f5f0e1;
}

@media (min-width: 900px) {
  .reviews {
    grid-template-columns: 1.3fr 1fr;
    column-gap: 80px;
  }

  .reviews-head {
    grid-column: 1 / -1;
  }
}

/* short screens (small laptops): tighten the review form so the section stays one screen tall */
@media (max-height: 740px) {
  .reviews {
    row-gap: 16px;
  }
  .reviews-head h2 {
    font-size: clamp(2.4rem, 7vh, 3rem);
  }
  .review-write {
    gap: 4px;
  }
  .review-write h3 {
    font-size: 1.4rem;
  }
  .review-write label {
    margin-top: 4px;
  }
  .review-write :is(input, textarea) {
    padding: 6px 0;
  }
  .review-write textarea {
    height: 3em;
  }
  .review-write > button[type="submit"] {
    margin-top: 4px;
    padding: 12px 24px;
  }
}

/* all the quotes share one spot; the current one fades and rises in */
.reviews-stage {
  display: grid;
}

.review {
  grid-area: 1 / 1;
  opacity: 0;
  translate: 0 16px;
  pointer-events: none;
  transition:
    opacity 0.7s ease,
    translate 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

.review.is-on {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

.review-rating {
  font-size: 18px;
  letter-spacing: 0.15em;
  color: #f4a300;
}

.review blockquote {
  margin: 18px 0 24px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.2;
}

.review blockquote::before {
  content: "“";
  color: #f4a300;
}

.review blockquote::after {
  content: "”";
  color: #f4a300;
}

.review figcaption {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.review figcaption b {
  font-weight: 600;
}

.review figcaption span {
  color: rgba(245, 240, 225, 0.62);
}

.reviews-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.reviews-arrow,
.reviews-arrow:hover {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: none;
  border: 1px solid rgba(245, 240, 225, 0.3);
  color: #f5f0e1;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    translate 0.3s ease;
}

.reviews-arrow:hover {
  background-color: #f4a300;
  border-color: #f4a300;
  color: #1a1a1a;
}

.reviews-arrow[data-step="-1"]:hover {
  translate: -2px 0;
}

.reviews-arrow[data-step="1"]:hover {
  translate: 2px 0;
}

/* the dots double as a slider: grab and drag along them */
.reviews-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 6px; /* a taller grab area than the dots themselves */
  cursor: grab;
  touch-action: none;
}

.reviews-dots.is-dragging {
  cursor: grabbing;
}

.reviews-count {
  margin-left: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(245, 240, 225, 0.62);
}

.reviews-count b {
  font-weight: 400;
  color: #f4a300;
}

.reviews-count i {
  font-style: normal;
}

.reviews-stage {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.reviews-dots button,
.reviews-dots button:hover {
  cursor: inherit;
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background-color: rgba(245, 240, 225, 0.22);
  transition:
    width 0.4s cubic-bezier(0.19, 1, 0.22, 1),
    background-color 0.3s ease;
}

.reviews-dots button[aria-selected="true"] {
  width: 26px;
  background-color: #f4a300;
}

/* the write-a-review card: a slightly lifted panel of the same wine */
.review-write {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 3.5vh, 32px) 32px;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 163, 0, 0.22);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

.review-write h3 {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2rem;
}

.review-who {
  margin-top: -8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 240, 225, 0.55);
}

.review-write label {
  margin-top: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 225, 0.6);
}

.review-write label i {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0.05em;
  color: rgba(245, 240, 225, 0.62);
}

.review-write :is(input, textarea) {
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 240, 225, 0.3);
  color: #f5f0e1;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.review-write :is(input, textarea):focus {
  outline: none;
  border-bottom-color: #f4a300;
}

.review-write :is(input, textarea)::placeholder {
  color: rgba(245, 240, 225, 0.62);
}

.review-write > button[type="submit"] {
  align-self: flex-start;
  margin-top: 10px;
  padding: 15px 28px;
}

.review-write > button[type="submit"]:hover {
  background-color: #f5f0e1;
  color: #1a1a1a;
}

/* stars: hovering previews a rating (every star up to the one under the pointer), clicking sets it */
.review-stars {
  display: flex;
  gap: 4px;
}

.review-stars button,
.review-stars button:hover {
  padding: 0 2px;
  background: none;
  color: rgba(245, 240, 225, 0.2);
  font-size: 28px;
  letter-spacing: 0;
  line-height: 1;
  transition:
    color 0.2s ease,
    scale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.review-stars button.is-lit,
.review-stars:hover button {
  color: #f4a300;
}

.review-stars button:hover ~ button {
  color: rgba(245, 240, 225, 0.2);
}

.review-stars button:hover {
  scale: 1.2;
}

.review-note {
  min-height: 1.2em;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #f4a300;
}

/* signed out: a frosted cover over the form, with a sign-in button */
.review-lock {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  border-radius: 18px;
  text-align: center;
  background-color: rgba(42, 11, 20, 0.65);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.review-write.is-locked .review-lock {
  display: flex;
}

.review-lock p {
  max-width: 18rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.3;
}

.review-signin {
  padding: 14px 24px;
  background-color: #f4a300;
  color: #1a1a1a;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.review-signin:hover {
  background-color: #f5f0e1;
  color: #1a1a1a;
}

/* Gallery layout: heading row, then the mosaic takes whatever height is left, so it always fits one screen */
/* --- GALLERY: the darkroom --- warm near-black under a red-amber safelight, with film grain. Clients'
   photos are prints on cream paper, set down at slight angles; a camera shutter and flash take the shot as
   you arrive, the prints develop, and a roll of film lies across the seam with Reviews. */
@property --iris {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

.gallery {
  grid-template-columns: minmax(0, 1fr); /* the long rows of prints must not stretch the layout */
  --darkroom: #150d0a;
  --paper: #efe7d6;
  position: relative;
  z-index: 2; /* the film strip lies over the top of Reviews */
  overflow-x: clip; /* the strip pokes past the screen edges */
  height: 100vh;
  min-height: 560px;
  box-sizing: border-box;
  padding: 116px 40px 72px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 28px;
  background:
    radial-gradient(ellipse 60% 55% at 10% 0%, rgba(214, 72, 38, 0.24), transparent),
    radial-gradient(ellipse 45% 40% at 100% 100%, rgba(244, 163, 0, 0.1), transparent), var(--darkroom);
  color: #f5f0e1;
}

/* film grain, flickering gently */
.gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(3) infinite;
}

@keyframes grain {
  33% {
    background-position: 60px 40px;
  }
  66% {
    background-position: -40px 90px;
  }
}

.gallery > .gallery-head,
.gallery > .gallery-frame {
  position: relative;
  z-index: 1;
}

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}

.gallery-head p {
  max-width: 30rem;
  margin-top: 16px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(245, 240, 225, 0.65);
}

.gallery-actions {
  display: flex;
  gap: 12px;
}

.gallery-actions button {
  padding: 14px 24px;
}

.gallery-join,
.gallery-open {
  background: none;
  border: 1px solid rgba(245, 240, 225, 0.35);
  color: #f5f0e1;
  transition:
    border-color 0.3s ease,
    color 0.3s ease;
}

.gallery-join:hover,
.gallery-open:hover {
  background: none;
  border-color: #f4a300;
  color: #f4a300;
}

/* the prints drift past in rows (home.js renderWall); each row loops seamlessly and stops while you
   point at one of its prints */
.gallery-frame {
  min-height: 0;
}

/* soft fade at both sides, so prints drift in and out of view (overlays, not a mask: a mask would also
   clip prints that overlap above and below) */
.gallery-frame::before,
.gallery-frame::after {
  content: "";
  position: absolute;
  top: -40px;
  bottom: -40px;
  z-index: 4;
  width: 120px;
  pointer-events: none;
}

.gallery-frame::before {
  left: -40px; /* the screen's left edge */
  background: linear-gradient(to right, var(--darkroom), transparent);
}

.gallery-frame::after {
  right: -40px; /* the screen's right edge */
  background: linear-gradient(to left, var(--darkroom), transparent);
}

.gallery-grid {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 -40px; /* rows run to the screen edges, where they fade */
}

.wall-lane {
  flex: 1;
  min-height: 0;
  overflow-x: clip; /* cut off at the sides only: top and bottom can overlap the next row */
  overflow-y: visible;
}

.wall-lane + .wall-lane {
  margin-top: -14px; /* rows overlap a touch */
}

/* the print you point at comes up above its neighbours */
.gallery-tile:hover,
.gallery-tile:focus-visible {
  z-index: 3;
}

.wall-track {
  display: flex;
  gap: 26px;
  width: max-content;
  height: 100%;
  animation: wall-drift var(--wall-duration, 60s) linear infinite;
}

.wall-lane[data-dir="right"] .wall-track {
  animation-direction: reverse;
}

.wall-lane:has(.gallery-tile:hover, .gallery-tile:focus-visible) .wall-track {
  animation-play-state: paused;
}

@keyframes wall-drift {
  to {
    translate: -50% 0;
  }
}

.gallery-tile,
.gallery-tile:hover {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 8px 8px 0;
  border-radius: 3px;
  background: var(--paper);
  color: #2a2320;
  text-transform: none;
  letter-spacing: normal;
  rotate: var(--tilt, 0deg);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.4);
  transition:
    rotate 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    translate 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease;
}

/* picked up: it straightens and lifts */
.gallery-tile:hover,
.gallery-tile:focus-visible {
  rotate: 0deg;
  translate: 0 -8px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 4px 10px rgba(0, 0, 0, 0.4);
}

.gallery-tile {
  flex: none;
  align-self: flex-start;
  box-sizing: border-box;
}

.print-photo {
  position: relative;
  flex: 1;
  min-height: 0;
  display: block; /* no line-height: 0 here: the img below is display: block, which already removes the gap
                     under it, and a zero line-height stacked the empty print's wrapped text on itself */
  transition: filter 1.8s ease calc(0.35s + var(--i, 0) * 0.22s);
}

/* the whole photo at the print's height: its own width, so nothing is cropped and no paper shows around it */
.print-photo img {
  height: calc(var(--ph, 200px) * var(--scale, 1));
  width: calc(var(--ph, 200px) * var(--scale, 1) * var(--ratio, 0.8));
  object-fit: cover; /* only matters for the moment before the photo's shape is known */
  display: block;
  border-radius: 1px;
  background: #241915;
  -webkit-user-drag: none;
}

/* not yet shot: the prints sit blank and washed out, then develop in turn */
.gallery.is-armed:not(.is-shot) .print-photo {
  filter: brightness(2.4) contrast(0.45) sepia(0.9) blur(5px);
  transition-duration: 0s;
  transition-delay: 0s;
}

.print-caption {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  height: 34px;
  padding: 0 4px;
  overflow: hidden;
  white-space: nowrap;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 34px;
  color: rgba(42, 35, 32, 0.7);
}

.print-caption b {
  font-weight: 600;
  color: #2a2320;
}

/* the viewfinder: gold corner brackets snap in around the photo you point at, and a focus square locks on */
.print-photo::before {
  content: "";
  position: absolute;
  inset: 12px;
  background:
    linear-gradient(#f4a300, #f4a300) top left / 22px 2px no-repeat,
    linear-gradient(#f4a300, #f4a300) top left / 2px 22px no-repeat,
    linear-gradient(#f4a300, #f4a300) top right / 22px 2px no-repeat,
    linear-gradient(#f4a300, #f4a300) top right / 2px 22px no-repeat,
    linear-gradient(#f4a300, #f4a300) bottom left / 22px 2px no-repeat,
    linear-gradient(#f4a300, #f4a300) bottom left / 2px 22px no-repeat,
    linear-gradient(#f4a300, #f4a300) bottom right / 22px 2px no-repeat,
    linear-gradient(#f4a300, #f4a300) bottom right / 2px 22px no-repeat;
  opacity: 0;
  scale: 1.12;
  transition:
    opacity 0.25s ease,
    scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
}

.print-photo::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border: 1.5px solid #f4a300;
  border-radius: 3px;
  translate: -50% -50%;
  opacity: 0;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.gallery-tile:hover .print-photo::before,
.gallery-tile:focus-visible .print-photo::before {
  opacity: 1;
  scale: 1;
}

.gallery-tile:hover .print-photo::after,
.gallery-tile:focus-visible .print-photo::after {
  animation: focus-lock 0.7s ease forwards;
}

@keyframes focus-lock {
  0% {
    opacity: 0;
    scale: 1.8;
  }
  40% {
    opacity: 1;
    scale: 0.9;
  }
  55%,
  75% {
    opacity: 1;
    scale: 1;
    border-color: #f4a300;
  }
  65% {
    border-color: #fff;
  }
  100% {
    opacity: 0.9;
    scale: 1;
  }
}

.gallery-tile.is-empty .print-photo {
  width: calc(var(--ph, 200px) * var(--scale, 1) * 0.8);
  height: calc(var(--ph, 200px) * var(--scale, 1));
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg, rgba(42, 35, 32, 0.06) 0 10px, transparent 10px 20px);
  border: 1px dashed rgba(42, 35, 32, 0.3);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.2em;
  text-align: center; /* wraps to two or three lines on a narrow phone print */
  text-transform: uppercase;
  color: rgba(42, 35, 32, 0.68);
}

/* the shutter: iris blades close over the prints, the flash fires, then they open again */
.gallery-shutter,
.gallery-flash {
  position: absolute;
  inset: -30px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

.gallery-shutter {
  background: repeating-conic-gradient(from 10deg, #0c0705 0deg 52deg, #2a1a12 52deg 54deg, #0c0705 54deg 60deg);
  -webkit-mask: radial-gradient(circle, transparent var(--iris), #000 calc(var(--iris) + 0.5%));
  mask: radial-gradient(circle, transparent var(--iris), #000 calc(var(--iris) + 0.5%));
}

.gallery-flash {
  background: radial-gradient(circle, #fff, rgba(255, 244, 220, 0.85) 60%, rgba(255, 244, 220, 0.4));
}

.gallery.is-shooting .gallery-shutter {
  animation: shutter 1.1s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.gallery.is-shooting .gallery-flash {
  animation: flash 0.9s ease-out 0.42s both;
}

@keyframes shutter {
  0% {
    opacity: 1;
    --iris: 100%;
    rotate: -30deg;
  }
  42% {
    --iris: 0%;
    rotate: 0deg;
  }
  52% {
    --iris: 0%;
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    --iris: 100%;
    rotate: 25deg;
  }
}

@keyframes flash {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
  }
}

/* the roll of film across the seam with Reviews */
.filmstrip {
  position: absolute;
  left: -5vw;
  bottom: 0;
  z-index: 3;
  width: 110vw;
  height: 70px;
  overflow: hidden;
  background: #0b0705;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(50%) rotate(-1.2deg);
  pointer-events: none;
}

/* sprocket holes along both edges */
.filmstrip::before,
.filmstrip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 7px;
  z-index: 1;
  background: repeating-linear-gradient(to right, transparent 0 7px, #e8dcc2 7px 16px, transparent 16px 24px);
  opacity: 0.85;
}

.filmstrip::before {
  top: 5px;
}

.filmstrip::after {
  bottom: 5px;
}

.film-track {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  will-change: transform;
}

.film-roll {
  display: flex;
  gap: 16px;
  width: max-content;
  height: 100%;
  animation: film-run 90s linear infinite;
}

@keyframes film-run {
  to {
    translate: -50% 0;
  }
}

.film-frame {
  position: relative;
  width: 54px;
  height: 100%;
  border-radius: 2px;
  background: #241915 center / cover;
  filter: sepia(0.35) contrast(1.1) saturate(0.85);
}

/* the frame number printed on the film's edge, beside each frame */
.film-frame::after {
  content: attr(data-num);
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  translate: -50% -50%;
  rotate: -90deg;
  font-family: "JetBrains Mono", monospace;
  font-size: 7px;
  font-weight: 600;
  color: #f4a300;
  opacity: 0.8;
}

@media (max-width: 700px) {
  .gallery {
    height: auto;
    padding-bottom: 80px;
  }

  .wall-lane {
    flex: none;
    height: 240px;
  }
}

/* --- Album and Join-the-wall dialogs: over a blurred, dimmed page --- */
.album,
.wall-submit {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}

/* closed: gone completely (display: grid above would otherwise override the hidden attribute
   and leave an invisible layer over the page, swallowing every click and scroll) */
.album[hidden],
.wall-submit[hidden] {
  display: none;
}

.album-backdrop,
.wall-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(5, 6, 12, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.album.is-open .album-backdrop,
.wall-submit.is-open .wall-backdrop {
  opacity: 1;
}

/* album: one big photo, caption, arrows either side, counter and thumbnails underneath */
.album-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  scale: 0.96;
  transition:
    opacity 0.4s ease,
    scale 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.album.is-open .album-frame {
  opacity: 1;
  scale: 1;
}

.album-photo {
  width: min(62vh, 80vw);
  aspect-ratio: 4 / 5;
  max-height: 66vh;
  border-radius: 16px;
  background: center / contain no-repeat; /* the whole photo */
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}

.album-photo.is-in {
  animation: album-in 0.55s cubic-bezier(0.19, 1, 0.22, 1);
}

.album-frame figcaption {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f5f0e1;
}

.album-frame figcaption span {
  color: #f4a300;
}

.album-step,
.album-step:hover {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 52px;
  height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 240, 225, 0.08);
  border: 1px solid rgba(245, 240, 225, 0.25);
  color: #f5f0e1;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.album-step:hover {
  background-color: #f4a300;
  border-color: #f4a300;
  color: #1a1a1a;
}

.album-prev {
  left: max(24px, calc(50% - min(31vh, 40vw) - 110px));
}

.album-next {
  right: max(24px, calc(50% - min(31vh, 40vw) - 110px));
}

.album-count {
  position: absolute;
  top: 32px;
  left: 40px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(245, 240, 225, 0.6);
}

.album-count b {
  font-weight: 400;
  color: #f4a300;
}

.album-count i {
  font-style: normal;
}

.album-thumbs {
  position: absolute;
  bottom: 24px;
  left: 50%;
  translate: -50% 0;
  display: flex;
  gap: 8px;
  max-width: 80vw;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
}

.album-thumbs button {
  flex: none;
  width: 44px;
  height: 56px;
  padding: 0;
  border-radius: 8px;
  background: center / cover;
  opacity: 0.45;
  outline: 1px solid transparent;
  transition:
    opacity 0.3s ease,
    outline-color 0.3s ease;
}

.album-thumbs button:hover,
.album-thumbs button.is-active {
  opacity: 1;
  outline-color: #f4a300;
}

.album-close,
.wall-close {
  position: absolute;
  top: 28px;
  right: 40px;
  padding: 6px 0;
  background: none;
  border-bottom: 1px solid rgba(245, 240, 225, 0.35);
  color: #f5f0e1;
}

.album-close:hover,
.wall-close:hover {
  background: none;
  color: #f4a300;
}

.album .album-step,
.album .album-count,
.album .album-thumbs,
.album .album-close {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.album.is-open :is(.album-step, .album-count, .album-thumbs, .album-close) {
  opacity: 1;
}

/* join the wall: the submission card */
.wall-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 36px 36px 30px;
  border-radius: 20px;
  background-color: rgb(14, 16, 26);
  border: 1px solid rgba(244, 163, 0, 0.25);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  color: #f5f0e1;
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity 0.4s ease,
    translate 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.wall-submit.is-open .wall-card {
  opacity: 1;
  translate: 0 0;
}

.wall-card .wall-close {
  top: 22px;
  right: 24px;
}

.wall-card h6 {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f4a300;
}

.wall-card h3 {
  margin-top: -6px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1;
}

.wall-card h3 em {
  color: #f4a300;
}

.wall-intro {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(245, 240, 225, 0.65);
}

.wall-card label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 225, 0.6);
}

.wall-card label i {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0.05em;
  color: rgba(245, 240, 225, 0.62);
}

.wall-card input:not([type="file"], [type="checkbox"]) {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 9px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 240, 225, 0.3);
  color: #f5f0e1;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 0.3s ease;
}

.wall-card input:not([type="file"], [type="checkbox"]):focus {
  outline: none;
  border-bottom-color: #f4a300;
}

.wall-card input::placeholder {
  color: rgba(245, 240, 225, 0.62);
}

.wall-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* the drop zone: a dashed box you can click or drop photos onto */
.wall-card .wall-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 16px;
  border: 1px dashed rgba(245, 240, 225, 0.3);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.wall-drop:hover,
.wall-drop.is-over {
  border-color: #f4a300;
  background-color: rgba(244, 163, 0, 0.06);
}

.wall-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.wall-drop span {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: normal;
  text-transform: none;
  color: #f5f0e1;
}

.wall-drop u {
  color: #f4a300;
}

.wall-drop small {
  font-size: 9px;
  color: rgba(245, 240, 225, 0.62);
}

.wall-previews {
  display: flex;
  gap: 10px;
}

.wall-previews:empty {
  display: none;
}

.wall-previews div {
  position: relative;
  width: 72px;
  height: 90px;
  border-radius: 10px;
  background: center / cover;
  animation: enter-rise 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.wall-previews button,
.wall-previews button:hover {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background-color: #f5f0e1;
  color: #1a1a1a;
  font-size: 10px;
  letter-spacing: 0;
}

.wall-previews button:hover {
  background-color: #f4a300;
}

.wall-card .wall-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.5;
  color: rgba(245, 240, 225, 0.7);
  cursor: pointer;
}

.wall-consent input {
  margin-top: 3px;
  accent-color: #f4a300;
}

.wall-card button[type="submit"] {
  align-self: flex-start;
  margin-top: 4px;
  padding: 15px 28px;
}

.wall-note {
  min-height: 1.2em;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #f4a300;
}

/* Scrollbar ticks: hover one to see which section it takes you to (the name slides out to the left) */
.scroll-tick {
  pointer-events: auto;
  transition:
    opacity 0.25s ease var(--tick-delay, 0s),
    scale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) var(--tick-delay, 0s),
    width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.2s ease;
}

.scroll-tick::before {
  content: ""; /* a bigger, invisible hover target around the tiny dot */
  position: absolute;
  inset: -6px -8px;
}

.scroll-tick::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  translate: 6px -50%;
  padding: 6px 10px;
  border-radius: 999px;
  background-color: rgba(10, 12, 20, 0.88);
  border: 1px solid rgba(244, 163, 0, 0.3);
  color: #f5f0e1;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    translate 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

/* the dot grows by size, not scale, so its label is never scaled along with it */
.scroll-progress .scroll-tick:hover {
  width: 10px;
  height: 10px;
  background-color: #f4a300;
}

.scroll-progress .scroll-tick:hover::after {
  opacity: 1;
  translate: 0 -50%;
}

@keyframes house-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 163, 0, 0.6);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(244, 163, 0, 0);
  }
}

@keyframes house-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

@keyframes hint-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes roll-up {
  to {
    transform: translateY(-1.5em);
  }
}

@keyframes bybit-loop-word {
  0%,
  10%,
  84%,
  100% {
    rotate: 0deg;
    letter-spacing: 0.05em;
  }
  24%,
  70% {
    rotate: 180deg;
    letter-spacing: 0.6em;
  }
}

@keyframes bybit-loop-letter {
  0%,
  86%,
  100% {
    scale: 1;
    rotate: 0deg;
    text-shadow: none;
  }
  6% {
    scale: 1.4;
    rotate: 0deg;
    text-shadow: 0 0 12px rgba(244, 163, 0, 0.8);
  }
  13% {
    scale: 1;
    rotate: 0deg;
  }
  24%,
  70% {
    rotate: -90deg;
    translate: var(--upright-nudge);
    text-shadow: 0 0 10px rgba(244, 163, 0, 0.6);
  }
}

@keyframes pattern-drift {
  to {
    translate: -300px;
  }
}

@keyframes arrow-hint {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 163, 0, 0.55);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(244, 163, 0, 0);
  }
}

@keyframes arrow-nudge {
  0%,
  100% {
    translate: 0;
  }
  40% {
    translate: 5px;
  }
}

@keyframes swap-in {
  from {
    translate: 0 110%;
  }
}

@keyframes swap-out {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -110%;
  }
}

@keyframes nav-burst {
  0% {
    opacity: 1;
    transform: translateX(8px) scaleX(0.5);
  }
  100% {
    opacity: 0;
    transform: translateX(30px) scaleX(1.4);
  }
}

@keyframes album-in {
  from {
    opacity: 0;
    translate: var(--from, 40px) 0;
  }
}

/* --- Developer credit (footer bottom) --- a pill with a glowing gold dot; hovering springs a card up out of it */
/* sits in the middle of the bottom row: © left, credit centred, tagline right */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer-bottom > :last-child {
  justify-self: end;
}

.dev-credit {
  position: relative;
  display: inline-flex;
}

.dev-pill,
.dev-pill:hover {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 0;
  gap: 6px;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  background: rgba(245, 240, 225, 0.06);
  border: 1px solid rgba(245, 240, 225, 0.12);
  color: rgba(245, 240, 225, 0.6);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition:
    border-color 0.3s ease,
    color 0.3s ease,
    background-color 0.3s ease;
}

.dev-credit:is(:hover, :focus-within) .dev-pill {
  border-color: rgba(244, 163, 0, 0.6);
  background-color: rgba(244, 163, 0, 0.1);
  color: #f4a300;
}

/* the dot: glows, and sends out a slow ripple to invite a hover */
.dev-pill i {
  position: relative;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #f4a300;
  box-shadow: 0 0 10px rgba(244, 163, 0, 0.8);
  transition: scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dev-pill i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #f4a300;
  animation: dev-ripple 2.6s ease-out infinite;
}

@keyframes dev-ripple {
  0% {
    scale: 1;
    opacity: 0.9;
  }
  70%,
  100% {
    scale: 3.2;
    opacity: 0;
  }
}

.dev-credit:is(:hover, :focus-within) .dev-pill i {
  scale: 1.3;
}

/* the card */
.dev-card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  z-index: 5;
  display: grid;
  gap: 14px;
  width: 300px;
  padding: 18px;
  border-radius: 18px;
  background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(244, 163, 0, 0.12), transparent), rgba(14, 16, 26, 0.96);
  border: 1px solid rgba(244, 163, 0, 0.3);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(244, 163, 0, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-transform: none;
  letter-spacing: normal;
  opacity: 0;
  translate: -50% 12px;
  scale: 0.85;
  filter: blur(6px);
  transform-origin: bottom center;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    translate 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.35s ease;
}

/* bridge the gap so the hover survives moving up into the card */
.dev-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
}

.dev-credit:is(:hover, :focus-within) .dev-card {
  opacity: 1;
  translate: -50% 0;
  scale: 1;
  filter: blur(0);
  pointer-events: auto;
}

/* monogram with a slowly turning gold ring */
.dev-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4a300, #b36b00);
  color: #1a1a1a;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.7rem;
}

/* Simba's GitHub picture, filling the tile (the gold ring still turns around it) */
.dev-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.dev-avatar::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 17px;
  border: 1px dashed rgba(244, 163, 0, 0.6);
  animation: dev-spin 12s linear infinite;
}

.dev-text {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(245, 240, 225, 0.7);
}

.dev-text b {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: #f5f0e1;
}

.dev-links {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(245, 240, 225, 0.1);
}

.dev-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(245, 240, 225, 0.75);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-decoration: none;
  opacity: 0;
  translate: -8px 0;
  transition:
    opacity 0.3s ease,
    translate 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.25s ease,
    color 0.25s ease;
}

.dev-credit:is(:hover, :focus-within) .dev-links a {
  opacity: 1;
  translate: 0 0;
}

.dev-credit:is(:hover, :focus-within) .dev-links a:nth-child(1) {
  transition-delay: 0.12s, 0.12s, 0s, 0s;
}
.dev-credit:is(:hover, :focus-within) .dev-links a:nth-child(2) {
  transition-delay: 0.19s, 0.19s, 0s, 0s;
}
.dev-credit:is(:hover, :focus-within) .dev-links a:nth-child(3) {
  transition-delay: 0.26s, 0.26s, 0s, 0s;
}

.dev-links a:hover {
  background-color: rgba(244, 163, 0, 0.12);
  color: #f4a300;
}

.dev-links svg {
  flex: none;
  color: #f4a300;
  transition: scale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dev-links a:hover svg {
  scale: 1.2;
}

@keyframes dev-spin {
  to {
    rotate: 360deg;
  }
}

.dev-text b em {
  color: #f4a300;
}

/* Dev card tabs: Credit (who built it) and Version (what's deployed, from version.json). Both panels share
   one spot, so the card is sized to the taller and doesn't jump when you switch. */
.dev-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background-color: rgba(245, 240, 225, 0.05);
  border: 1px solid rgba(245, 240, 225, 0.08);
}

.dev-tabs button,
.dev-tabs button:hover {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: none;
  color: rgba(245, 240, 225, 0.55);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.dev-tabs button:hover {
  color: #f5f0e1;
}

.dev-tabs button[aria-selected="true"] {
  background-color: rgba(244, 163, 0, 0.14);
  color: #f4a300;
}

/* the "live" dot on the Version tab: green in production, amber locally */
.dev-tabs i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #3ecf8e;
  box-shadow: 0 0 8px rgba(62, 207, 142, 0.7);
}

.dev-card.is-local .dev-tabs i {
  background-color: #f4a300;
  box-shadow: 0 0 8px rgba(244, 163, 0, 0.7);
}

.dev-panels {
  display: grid;
}

.dev-panel {
  grid-area: 1 / 1;
  display: grid;
  align-content: start;
  opacity: 0;
  translate: 12px 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    translate 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0s 0.3s;
}

.dev-panel.is-on {
  opacity: 1;
  translate: 0 0;
  visibility: visible;
  transition-delay: 0s;
}

.dev-panel[data-panel="credit"] {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px 16px;
}

.ver-panel {
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: rgba(245, 240, 225, 0.6);
  text-align: left;
}

.ver-panel svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ver-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ver-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.ver-title b {
  color: #f5f0e1;
  font-weight: 600;
}

.ver-title svg {
  color: rgba(245, 240, 225, 0.62);
}

.ver-env {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(245, 240, 225, 0.2);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ver-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ver-branch {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.ver-message {
  padding-top: 10px;
  border-top: 1px solid rgba(245, 240, 225, 0.1);
  color: #f5f0e1;
  line-height: 1.45;
}

.ver-link {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(245, 240, 225, 0.1);
  color: rgba(245, 240, 225, 0.75);
  text-decoration: none;
  transition: color 0.25s ease;
}

.ver-link:hover {
  color: #f4a300;
}

/* The House video's cursor (home.js): a ring following the pointer, its gold arc filled to the video's speed
   (--fill 0..1). The normal cursor is hidden only while it shows. */
body.video-cursor-on,
body.video-cursor-on * {
  cursor: none !important;
}

.video-cursor {
  --fill: 0;
  position: fixed;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  scale: 0.5;
  transition:
    opacity 0.3s ease,
    scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-cursor.is-on {
  opacity: 0.85;
  scale: 1;
}

/* reaching full speed: a quick buzz (transform, so it adds to the position set in translate) */
.video-cursor.is-max {
  animation: video-cursor-buzz 0.42s linear;
}

@keyframes video-cursor-buzz {
  10%,
  50%,
  90% {
    transform: translate(-1.5px, 0.5px) rotate(-4deg);
  }
  30%,
  70% {
    transform: translate(1.5px, -0.5px) rotate(4deg);
  }
  100% {
    transform: none;
  }
}

/* the track and the gold arc, cut to a hairline ring */
.video-cursor::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(rgba(244, 163, 0, 0.9) calc(var(--fill) * 360deg), rgba(245, 240, 225, 0.22) 0);
  -webkit-mask: radial-gradient(circle, transparent 18.6px, #000 19.4px);
  mask: radial-gradient(circle, transparent 18.6px, #000 19.4px);
}

/* the centre: a small dot that swells a little as the video speeds up */
.video-cursor::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background-color: #f4a300;
  box-shadow: 0 0 calc(var(--fill) * 8px) rgba(244, 163, 0, 0.5);
  scale: calc(0.5 + var(--fill) * 0.5);
}

/* Join the wall, two columns on wide screens: photos left, details + Send right, so nothing needs scrolling */
.wall-side,
.wall-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

@media (min-width: 860px) {
  .wall-card {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: stretch;
    gap: 36px;
    width: min(960px, calc(100vw - 48px));
    padding: 40px 40px 34px;
  }

  .wall-fields {
    justify-content: flex-end; /* fields sit level with the bottom of the photo area */
    padding-top: 40px; /* clear of the close button */
  }

  /* the drop area grows to fill the left column */
  .wall-side .wall-drop {
    flex: 1;
    min-height: 180px;
    justify-content: center;
  }
}

/* a label that wraps to two lines doesn't push its field out of line with the one beside it */
.wall-row {
  align-items: end;
}

/* the caption never widens a print past its photo (long ones trail off) */
.gallery .print-caption {
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
  text-overflow: ellipsis;
}

/* prints take their size from the photo (or, for the invitation, its set size), not from the row */
.gallery .print-photo {
  flex: none;
}

/* focusing on one print: the rest of the wall blurs and dims, and every row stops */
.gallery-tile {
  transition:
    rotate 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    translate 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    filter 0.45s ease;
}

.gallery-grid:has(.gallery-tile:hover) .gallery-tile:not(:hover) {
  filter: blur(4px) brightness(0.55) saturate(0.7);
}

.gallery-grid:has(.gallery-tile:hover) .wall-track {
  animation-play-state: paused;
}

/* up to 10 photos: smaller previews that wrap */
.wall-previews {
  flex-wrap: wrap;
  gap: 8px;
}

.wall-previews div {
  width: 56px;
  height: 70px;
}

/* sent: a gold wash sweeps across, then "Sent" rises in with a tick drawing itself */
.wall-card button[type="submit"] {
  position: relative;
  overflow: hidden;
}

.wall-card button[type="submit"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f5f0e1;
  transform: scaleX(0);
  transform-origin: left;
}

.wall-card button[type="submit"] span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wall-card button.is-sent {
  pointer-events: none;
  color: #1a1a1a;
}

.wall-card button.is-sent::before {
  animation: sent-wash 0.55s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.wall-card button.is-sent span {
  animation: sent-rise 0.45s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.wall-card button.is-sent svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: sent-tick 0.4s 0.6s ease-out forwards;
}

@keyframes sent-wash {
  to {
    transform: scaleX(1);
  }
}

@keyframes sent-rise {
  from {
    opacity: 0;
    translate: 0 70%;
  }
}

@keyframes sent-tick {
  to {
    stroke-dashoffset: 0;
  }
}

/* --- Service detail sheet (index.html .service-sheet) --- cream card over the blurred page, the service's
   pattern across the top under the same vignette as its row */
.service {
  cursor: pointer;
}

.service-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.service-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-sheet-card {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  scrollbar-width: none; /* still scrolls on small screens, without a bar down the banner */
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(244, 163, 0, 0.12), transparent), rgb(var(--wash, 245, 240, 225));
  color: #1a1a1a;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  transition:
    opacity 0.4s ease,
    translate 0.55s cubic-bezier(0.19, 1, 0.22, 1),
    scale 0.55s cubic-bezier(0.19, 1, 0.22, 1),
    background-color 0.6s ease;
  opacity: 0;
  translate: 0 30px;
  scale: 0.97;
}

.service-sheet.is-open .service-sheet-backdrop {
  opacity: 1;
}

.service-sheet.is-open .service-sheet-card {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* stepping to the next service: the content slides in again */
.service-sheet-card.is-turning .service-sheet-body > *,
.service-sheet-card.is-turning .service-sheet-banner {
  animation: sheet-turn 0.55s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.service-sheet-card.is-turning .service-sheet-body > :nth-child(2) {
  animation-delay: 0.04s;
}
.service-sheet-card.is-turning .service-sheet-body > :nth-child(3) {
  animation-delay: 0.08s;
}
.service-sheet-card.is-turning .service-sheet-body > :nth-child(4) {
  animation-delay: 0.12s;
}
.service-sheet-card.is-turning .service-sheet-body > :nth-child(5) {
  animation-delay: 0.16s;
}

@keyframes sheet-turn {
  from {
    opacity: 0;
    translate: 24px 0;
  }
}

.service-sheet-banner {
  position: relative;
  height: 170px;
  background: #241915 center / cover;
}

/* the image's colour washes in and it blurs as it fades down into the card */
.service-sheet-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 25%, #000 80%);
  mask-image: linear-gradient(to bottom, transparent 25%, #000 80%);
}

.service-sheet-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(var(--tone, 20, 14, 10), 0.35) 0%,
    rgba(var(--tone, 20, 14, 10), 0.25) 35%,
    rgba(var(--wash, 245, 240, 225), 0.7) 72%,
    rgb(var(--wash, 245, 240, 225)) 100%
  );
}

.service-sheet-num {
  position: absolute;
  left: 36px;
  top: 28px;
  z-index: 1;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #f4a300;
}

.service-sheet-close,
.service-sheet-close:hover {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(10, 8, 6, 0.55);
  color: #f5f0e1;
  font-size: 9px;
}

.service-sheet-body {
  display: grid;
  gap: 14px;
  padding: 0 36px 32px;
  margin-top: -30px;
  position: relative;
}

.service-sheet-body h6 {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #b36b00;
}

.service-sheet-body h3 {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
}

.service-sheet-intro {
  max-width: 34rem;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.72);
}

.service-sheet-cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(26, 26, 26, 0.12);
}

.service-sheet-label,
.service-sheet-facts dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.68);
}

.service-sheet-includes {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
}

.service-sheet-includes li {
  display: flex;
  gap: 10px;
}

.service-sheet-includes li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 1px;
  margin-top: 0.7em;
  background: #f4a300;
}

.service-sheet-facts {
  display: grid;
  align-content: start;
  gap: 6px;
}

.service-sheet-facts dd {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
}

.service-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}

.service-sheet-book {
  padding: 15px 26px;
  background: #f4a300;
  color: #1a1a1a;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.service-sheet-book:hover {
  background: #1a1a1a;
  color: #f5f0e1;
}

.service-sheet-next,
.service-sheet-next:hover {
  padding: 15px 20px;
  background: none;
  border: 1px solid rgba(26, 26, 26, 0.25);
  color: #1a1a1a;
}

.service-sheet-next:hover {
  border-color: #1a1a1a;
}

@media (max-width: 640px) {
  .service-sheet-cols {
    grid-template-columns: 1fr;
  }

  .service-sheet-body {
    padding: 0 22px 26px;
  }
}

/* the account menu opens like the Gallery/Reviews button: the icon spins and turns gold as threads burst out */
.nav-account .nav-burst {
  left: 7px; /* the icon's centre */
}

.nav-account .nav-login svg {
  transition:
    rotate 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.3s ease;
}

.nav-account:is(:hover, .is-open) .nav-login svg {
  rotate: 360deg;
  scale: 1.2;
  color: #f4a300;
}

/* photos of the service's work: a strip of thumbnails; one opens large over the card */
.service-sheet-gallery {
  display: grid;
  gap: 10px;
}

.service-sheet-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.service-sheet-strip button,
.service-sheet-strip button:hover {
  flex: none;
  width: 92px;
  height: 116px;
  padding: 0;
  border-radius: 6px;
  background: #d9cfbc center / cover;
  box-shadow: 0 8px 18px rgba(26, 26, 26, 0.18);
  transition:
    translate 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
}

.service-sheet-strip button:hover {
  translate: 0 -4px;
  box-shadow: 0 14px 26px rgba(26, 26, 26, 0.25);
}

/* the photo viewer: over the whole card, the photo as large as fits, the controls underneath */
.service-sheet-view {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 56px 24px 20px;
  border-radius: inherit;
  background: rgba(10, 8, 6, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.service-sheet-view[hidden] {
  display: none;
}

.ssv-stage {
  position: relative;
  min-height: 0;
  pointer-events: none;
}

/* as large as fits the space above the controls, never cropped */
.ssv-stage img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.ssv-close,
.ssv-close:hover {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: rgba(245, 240, 225, 0.1);
  color: #f5f0e1;
  font-size: 13px;
  letter-spacing: 0;
}

.ssv-close:hover {
  background: #f4a300;
  color: #1a1a1a;
}

.ssv-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.ssv-step,
.ssv-step:hover {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(245, 240, 225, 0.3);
  color: #f5f0e1;
  font-size: 16px;
  letter-spacing: 0;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.ssv-step:hover {
  background: #f4a300;
  border-color: #f4a300;
  color: #1a1a1a;
}

/* the dial: a gold-rimmed knob with a notch per photo; the pointer turns to the current one */
.ssv-dial {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.12), transparent 55%),
    repeating-conic-gradient(rgba(245, 240, 225, 0.05) 0deg 4deg, transparent 4deg 8deg), #1c1612;
  box-shadow:
    0 0 0 1.5px rgba(244, 163, 0, 0.55),
    0 0 0 7px rgba(244, 163, 0, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.5),
    inset 0 -6px 14px rgba(0, 0, 0, 0.5);
  cursor: grab;
  touch-action: none;
  transition: box-shadow 0.3s ease;
}

.ssv-dial:hover,
.ssv-dial.is-turning {
  box-shadow:
    0 0 0 1.5px #f4a300,
    0 0 0 9px rgba(244, 163, 0, 0.14),
    0 14px 30px rgba(0, 0, 0, 0.5),
    inset 0 -6px 14px rgba(0, 0, 0, 0.5);
}

.ssv-dial.is-turning {
  cursor: grabbing;
}

.ssv-notches button,
.ssv-notches button:hover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 22px;
  margin: -11px 0 0 -7px;
  padding: 0;
  background: none;
  rotate: var(--a);
  transform-origin: 50% 50%;
  translate: 0 0;
  transform: translateY(-38px);
}

.ssv-notches button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 2px;
  height: 7px;
  translate: -50% 0;
  border-radius: 2px;
  background: rgba(245, 240, 225, 0.35);
  transition:
    background-color 0.3s ease,
    height 0.3s ease;
}

.ssv-notches button.is-on::after,
.ssv-notches button:hover::after {
  height: 10px;
  background: #f4a300;
}

/* the pointer: a gold needle from the centre to the rim */
.ssv-pointer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 30px;
  margin-left: -1px;
  transform-origin: 50% 0;
  translate: 0 0;
  transform: rotate(180deg); /* points up at rotate 0 */
  pointer-events: none;
  transition: rotate 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ssv-pointer::before {
  content: "";
  position: absolute;
  inset: 8px 0 0;
  border-radius: 2px;
  background: linear-gradient(#f4a300, rgba(244, 163, 0, 0.3));
}

.ssv-count {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  pointer-events: none;
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  color: #f5f0e1;
}

.ssv-count span {
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.ssv-count i {
  font-style: normal;
  font-size: 9px;
  opacity: 0.55;
}

/* a single photo: nothing to cycle */
.service-sheet-view.is-single .ssv-controls {
  display: none;
}

/* A small four-hole tailor's button rather than a generic menu glyph. */
.nav-button-icon {
  overflow: visible;
  filter: drop-shadow(0 0 5px rgba(244, 163, 0, 0.14));
}

.nav-button-icon .button-hole {
  fill: #f4a300;
  filter: drop-shadow(0 0 3px rgba(244, 163, 0, 0.75));
}

.nav-mobile-link {
  display: none !important;
}

/* --- Phone layout: a compact, intentional navigation and more breathing room for content. --- */
@media (max-width: 700px) {
  .scroll-progress,
  .house-hint {
    display: none;
  }

  header nav {
    background: linear-gradient(to bottom, rgba(10, 12, 20, 0.88), rgba(10, 12, 20, 0));
  }

  nav ul {
    min-height: 68px;
    padding: max(10px, env(safe-area-inset-top)) 16px 10px;
    box-sizing: border-box;
    gap: 4px;
    justify-content: flex-start;
  }

  nav ul li {
    margin: 0;
  }

  nav ul > li.nav-home,
  nav ul > li:nth-child(3),
  nav ul > li:nth-child(4),
  nav ul > li:nth-child(5) {
    display: none;
  }

  nav ul > li:first-child {
    display: flex;
    margin-right: auto;
  }

  nav li:first-child a {
    gap: 0;
  }

  nav li:first-child a em {
    display: none;
  }

  nav ul li img {
    width: 42px;
    height: 42px;
    padding: 7px;
  }

  /* Commission moves into the menu (the gold .nav-menu-cta); its top-bar spot is the account button, so
     signing in, and the Admin link once you're an admin, are one tap away on a phone */
  nav ul > li:has(> button[data-href]) {
    display: none;
  }

  .nav-more {
    order: 2;
    margin-left: 4px;
  }

  nav ul > li:last-child {
    order: 1;
    display: flex;
  }

  /* Login / your name: an outlined pill (the gold stays for Commission) */
  .nav-login {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid currentColor;
    border-radius: 999px;
    justify-content: center;
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .nav-login svg {
    opacity: 1;
  }

  /* signed in: the name takes the label's place in the pill (on desktop it floats over the hidden label) */
  .nav-account .swap {
    display: none;
  }

  .nav-name {
    position: static;
    translate: none;
    max-width: 96px;
  }

  /* the account menu (Admin, Log out) opens under the pill, flush with the screen edge */
  .nav-account .nav-more-menu {
    right: 0;
    min-width: 180px;
    grid-template-columns: 1fr;
  }

  .nav-more-menu a.nav-menu-cta,
  body.nav-on-light .nav-more-menu a.nav-menu-cta {
    margin-top: 6px;
    background: #f4a300;
    color: #1a1a1a;
    text-align: center;
  }

  .nav-more-menu a.nav-menu-cta:hover,
  body.nav-on-light .nav-more-menu a.nav-menu-cta:hover {
    background: #f5f0e1;
    color: #1a1a1a;
  }

  .nav-more-toggle,
  .nav-more-toggle:hover {
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: 3px;
    justify-content: center;
  }

  /* The invitation is a ring around the button, not movement of the button itself. */
  .nav-more-toggle::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid #f4a300;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: button-invite 2.4s ease-out infinite;
  }

  .nav-more.is-open .nav-more-toggle::after,
  .nav-more-toggle:focus-visible::after {
    animation: none;
    opacity: 0;
  }

  .nav-more:is(:hover, .is-open) .nav-more-toggle {
    rotate: 0deg;
    scale: 1;
  }

  .nav-more-menu {
    left: auto;
    right: 0;
    translate: 0 0;
    grid-template-columns: repeat(2, minmax(116px, 1fr));
    min-width: min(300px, calc(100vw - 32px));
    gap: 4px;
    padding: 10px;
  }

  /* On touch screens, the toggle retains focus after a tap. Let the JS state
     decide whether the menu is visible, so the second tap always closes it. */
  .nav-more:not(.is-open) .nav-more-menu {
    opacity: 0;
    scale: 0.8;
    pointer-events: none;
  }

  .nav-mobile-link {
    display: block !important;
  }

  .nav-more-menu a,
  body.nav-on-light .nav-more-menu a {
    padding: 13px 12px;
    font-size: 10px;
  }

  /* a full screen, but allowed to grow: on small phones a fixed height pushed the text up under the nav */
  .hero,
  .the-house {
    min-height: 100svh;
    height: auto;
  }

  /* Mobile gets the quiet, scissors-free side of the House poster instead of video. */
  .the-house {
    background: #241613 url("../assets/images/about-poster.jpg") 88% center / cover no-repeat;
  }

  .the-house .bg-video {
    display: none;
  }

  .hero-content,
  .house-content {
    padding: 92px 22px 32px;
    box-sizing: border-box;
    /* the content carries the full-screen height (its section now grows with it), so it stays centred */
    height: auto;
    min-height: 100svh;
  }

  /* The opening copy sits slightly lower, leaving the image and mark room to breathe. */
  .hero-content {
    padding-top: 148px;
    padding-bottom: 24px;
  }

  .house-content {
    width: auto;
    margin-left: 0;
    align-items: flex-start;
    padding: 92px 22px 148px; /* room for the tag, which sits above the Contact button */
    padding-right: 22px;
    text-align: left;
  }

  .house-content > div:first-child,
  .house-slider-controls {
    justify-content: flex-start;
  }

  .house-tag {
    top: auto;
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 68px); /* above the Contact button, not under it */
    left: 50%;
    flex-direction: row;
    gap: 10px;
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 8px 12px;
    transform: translate(calc(-50% + var(--drag, 0px)), 0);
  }

  .house-tag .drag-tag-line {
    width: 30px;
    height: 1px;
  }

  .house-tag .drag-tag-text {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .house-tag .drag-tag-hint {
    display: none;
  }

  /* Keep the partner mark alive even with the video intentionally disabled. */
  .house-tag .bybit:not(:hover) {
    animation: none;
  }

  .house-tag .bybit:not(:hover) span {
    animation: bybit-mobile-ripple 3.6s ease-in-out calc(var(--i) * 110ms) infinite;
    rotate: 0deg;
    translate: 0 0;
  }

  .hero-content h1,
  .house-content h2 {
    font-size: clamp(3.25rem, 15vw, 4.5rem);
    margin: 18px 0;
  }

  .hero-content > div:last-child {
    gap: 22px;
  }

  .hero-content p,
  .house-content p {
    font-size: 0.9rem;
  }

  .house-slider {
    gap: 16px;
  }

  .house-slides p {
    font-size: 0.84rem;
    line-height: 1.6;
  }

  footer {
    min-height: auto;
    padding: 88px 22px 28px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 22px;
  }

  .footer-brand,
  .footer-visit {
    grid-column: 1 / -1;
  }

  .footer-legal {
    grid-column: 2;
    grid-row: 3;
  }

  .footer-explore {
    grid-column: 1;
    grid-row: 3;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 16px;
  }

  .footer-bottom > :last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 100%;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.12em;
  }

  .dev-credit,
  .dev-pill {
    width: fit-content;
    max-width: max-content;
  }

  .dev-pill {
    min-height: 0;
  }

  .contact-float {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
  }

  .dev-card {
    left: auto;
    right: 0;
    width: min(300px, calc(100vw - 44px));
    box-sizing: border-box;
    translate: 0 12px;
    transform-origin: bottom right;
  }

  .dev-credit:is(:hover, :focus-within) .dev-card {
    translate: 0 0;
  }

  .services,
  .lookbook,
  .reviews {
    min-height: auto;
    padding-left: 22px;
    padding-right: 22px;
  }

  .services {
    padding-top: 92px;
    padding-bottom: 64px;
    gap: 42px;
  }

  .service-list {
    min-width: 0;
  }

  .service {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 10px;
  }

  .service h3 {
    font-size: clamp(1.7rem, 8vw, 2.25rem);
  }

  /* Two services at a time: a calmer, more deliberate mobile selector. */
  .services-carousel {
    gap: 14px;
  }

  .services-controls {
    gap: 8px;
  }

  .services-controls .services-arrow {
    flex: 1;
    width: 38px;
    min-height: 44px;
    border-radius: 20px;
  }

  .services-track {
    flex: 0 0 70px;
    padding: 0 10px;
  }

  .lookbook {
    padding-top: 92px;
    padding-bottom: 48px;
  }

  .lookbook-head {
    gap: 22px;
  }

  /* the cards run edge to edge (swiped past the screen sides) but start in line with the heading */
  .lookbook-strip {
    margin: 0 -22px;
    padding: 0 22px 32px;
    gap: 20px;
    scroll-padding: 0 22px;
  }

  .lookbook-progress {
    margin: 0;
  }

  .gallery {
    min-height: 0;
    padding: 92px 22px 56px;
    gap: 22px;
  }

  .gallery-head {
    align-items: flex-start;
    gap: 18px;
  }

  .gallery-actions {
    width: 100%;
  }

  .gallery-actions button {
    flex: 1;
    padding: 12px 10px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .gallery-grid {
    margin: 0 -22px;
  }

  .wall-lane {
    height: 190px;
  }

  .reviews {
    padding-top: 92px;
    padding-bottom: 72px;
    gap: 32px;
  }

  .review-write,
  .review-write :is(input, textarea) {
    min-width: 0;
  }

  .album-card,
  .wall-card {
    width: calc(100vw - 28px);
    max-height: calc(100svh - 28px);
  }

  /* Join the wall: one field per row (side by side, the labels wrapped to three lines and the
     placeholders were cut off), and a full-width Send */
  .wall-row {
    grid-template-columns: 1fr;
  }

  .wall-card button[type="submit"] {
    align-self: stretch;
    width: 100%;
  }

  /* the card, not the full-screen overlay: sizing the overlay pushed it past the screen and the card
     off-centre */
  .service-sheet {
    padding: 14px;
  }

  .service-sheet-card {
    max-height: calc(100svh - 28px);
  }

  /* the section already has the phone gutter; the head's desktop padding pushed it 40px further in */
  .lookbook-head {
    padding-left: 0;
    padding-right: 0;
  }

  /* menu button: same look, a thumb-sized target */
  .nav-more-toggle,
  .nav-more-toggle:hover {
    padding: 9px;
  }

  .nav-more-menu a,
  body.nav-on-light .nav-more-menu a {
    padding: 15px 12px;
  }

  /* footer: the Visit text gets the full width (it was squeezed into the icon row's three columns), and
     the icons and links are big enough to tap */
  .footer-visit ul {
    grid-template-columns: repeat(3, 44px) 1fr;
    gap: 10px;
  }

  .footer-contact-item > a {
    width: 44px;
    height: 44px;
  }

  :is(.footer-explore, .footer-legal) ul {
    gap: 2px;
  }

  :is(.footer-explore, .footer-legal) a {
    display: inline-block;
    padding: 8px 0;
  }

  /* the footer has the contact details and a Book a fitting button, so the floating Contact bubble steps
     aside as soon as the footer comes up, instead of sitting over its links */
  body:is(.footer-peek, .footer-full) .contact-float {
    opacity: 0;
    translate: 0 16px;
    pointer-events: none;
  }

  /* the back-to-top arrow: bottom right, beside the wordmark, clear of the link columns */
  .footer-up {
    left: auto;
    right: 22px;
    bottom: 128px;
    width: 52px;
    height: 52px;
  }
}

@keyframes sheet-view-in {
  from {
    opacity: 0;
  }
}

@keyframes button-invite {
  0%,
  58% {
    opacity: 0;
    scale: 0.86;
  }
  72% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    scale: 1.35;
  }
}

@keyframes bybit-mobile-ripple {
  0%,
  68%,
  100% {
    scale: 1;
    translate: 0 0;
    text-shadow: none;
  }
  10% {
    scale: 1.15;
    translate: 0 -4px;
    text-shadow: 0 0 10px rgba(244, 163, 0, 0.8);
  }
  18% {
    scale: 1;
    translate: 0 0;
  }
}

/* Hero showcase (home.js): a tall panel over the right of the hero */
.spotlight {
  position: fixed;
  right: 56px; /* clear of the scroll dots */
  top: 104px;
  bottom: 96px; /* clear of the Contact button */
  z-index: 15;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  border-radius: 20px;
  background: rgba(10, 12, 20, 0.85);
  border: 1px solid rgba(244, 163, 0, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #f5f0e1;
  opacity: 0;
  translate: 80px 0;
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    translate 0.8s cubic-bezier(0.34, 1.25, 0.64, 1);
}

.spotlight.is-on {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

/* the looks, full height, cross-fading with a slow zoom */
.spotlight-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  cursor: pointer;
}

.spotlight-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.spotlight-slide.is-on {
  opacity: 1;
}

.spotlight-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* keep heads in frame */
}

.spotlight-slide.is-on img {
  animation: spotlight-zoom var(--slide-ms, 5s) linear forwards;
}

@keyframes spotlight-zoom {
  from {
    scale: 1.12;
  }
  to {
    scale: 1;
  }
}

.spotlight-slide figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 2px;
  padding: 60px 20px 16px;
  background: linear-gradient(to top, rgba(10, 12, 20, 0.95), transparent);
}

.spotlight-slide figcaption span {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #f4a300;
}

.spotlight-slide figcaption b {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
}

.spotlight-slide figcaption i {
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: rgba(245, 240, 225, 0.8);
}

.spotlight-slide figcaption a {
  justify-self: start;
  margin-top: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5f0e1;
  text-decoration: none;
  border-bottom: 1px solid #f4a300;
}

.spotlight-slide.is-on figcaption > * {
  animation: enter-rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.spotlight-slide.is-on figcaption > :nth-child(2) { animation-delay: 0.08s; }
.spotlight-slide.is-on figcaption > :nth-child(3) { animation-delay: 0.14s; }
.spotlight-slide.is-on figcaption > :nth-child(4) { animation-delay: 0.2s; }

/* a bar per look, like stories: done, filling, waiting */
.spotlight-bars {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 56px;
  z-index: 2;
  display: flex;
  gap: 4px;
}

.spotlight-bars span {
  position: relative;
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(245, 240, 225, 0.3);
  overflow: hidden;
}

.spotlight-bars span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #f4a300;
  transform-origin: left;
  scale: 0 1;
}

.spotlight-bars span.is-done::after {
  scale: 1 1;
}

.spotlight-bars span.is-on::after {
  animation: spotlight-bar var(--slide-ms, 5s) linear forwards;
}

.spotlight:hover .spotlight-bars span.is-on::after {
  animation-play-state: paused;
}

@keyframes spotlight-bar {
  to {
    scale: 1 1;
  }
}

.spotlight-body {
  padding: 16px 20px 18px;
}

.spotlight h6 {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f4a300;
}

.spotlight-title {
  margin: 6px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.05;
}

.spotlight-title em {
  color: #f4a300;
}

.spotlight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spotlight-chips button,
.spotlight-chips button:hover {
  padding: 7px 12px;
  border-radius: 999px;
  background: none;
  border: 1px solid rgba(245, 240, 225, 0.22);
  color: rgba(245, 240, 225, 0.85);
  font-size: 9px;
  transition:
    border-color 0.25s ease,
    color 0.25s ease;
}

.spotlight-chips button:hover {
  border-color: #f4a300;
  color: #f4a300;
}

.spotlight-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.spotlight-go {
  flex: 1;
  padding: 14px;
  border-radius: 999px;
}

.spotlight-shop {
  display: grid;
  place-items: center;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(245, 240, 225, 0.35);
  color: #f5f0e1;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 0.3s ease,
    color 0.3s ease;
}

.spotlight-shop:hover {
  border-color: #f4a300;
  color: #f4a300;
}

.spotlight-close,
.spotlight-close:hover {
  position: absolute;
  top: 26px;
  right: 14px;
  z-index: 3;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  background: rgba(10, 12, 20, 0.6);
  color: #f5f0e1;
  font-size: 11px;
  letter-spacing: 0;
}

@media (max-width: 700px) {
  .spotlight {
    display: none; /* the hero is the whole phone screen; the Services section is a scroll away */
  }
}

.contact-float {
  transition:
    opacity 0.35s ease,
    translate 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.contact-float.is-away {
  opacity: 0;
  translate: 0 16px;
  pointer-events: none;
}
