/* Achickfrombk — styled by appointment
   Tokens follow docs/DESIGN.md (Lavanda style reference). */

/* Self-hosted Switzer from Fontshare (ITF Free Font License) */
@font-face {
  font-family: Switzer;
  src: url("fonts/switzer-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Switzer;
  src: url("fonts/switzer-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Switzer;
  src: url("fonts/switzer-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Switzer;
  src: url("fonts/switzer-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-deep-void: #000000;
  --color-pure-linen: #ffffff;
  --color-faded-stone: #999999;
  --color-electric-cerulean: #0099ff;
  --hairline: rgba(0, 0, 0, 0.12);

  --font-sans: Switzer, "Switzer Placeholder", sans-serif;

  --text-caption: 10px;
  --text-body-sm: 12px;
  --text-body: 13px;
  --text-body-lg: 16px;
  --text-heading-sm: 22px;
  --text-heading-lg: 32px;
  --text-display: 166px;

  --radius-cards: 10px;
  --radius-buttons: 10px;
  --shadow-cta-float: 0px 20px 20px 0px rgba(0, 0, 0, 0.65);
  --gutter: 28px;
  --section-gap: 80px;
  --zip-gap: clamp(44px, 7vh, 60px); /* clear lane down the centre for the zipper */

  --duration-morph-fade: 800ms;
  --easing-morph-fade: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none; /* no rubber-band jolt under smooth touch scrolling */
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

body {
  margin: 0;
  background: var(--color-deep-void);
  color: var(--color-pure-linen);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: hidden turns the body into a scroll container, which can
     unstick the pinned cover in iOS Safari. "hidden" stays as the fallback. */
  overflow-x: hidden;
  overflow-x: clip;
}

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

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

button {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Fixed header & footer ---------- */

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  pointer-events: none;
  transition: color 0.4s ease;
}

.site-header > * {
  pointer-events: auto;
}

.site-header {
  top: 0;
  height: 88px;
}

/* Logo and social icons. Once the zipper starts opening they swing together into the
   centre on a glossy bar (positions set from main.js); the logo gets a black backing. */
.brand,
.social {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 44px;
  will-change: transform;
}

.brand {
  margin-left: -14px; /* the padding is the backing's room; the logo stays on the gutter */
  padding: 0 14px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, calc(var(--chip, 0) * 0.92));
}

.brand img {
  display: block;
  width: auto;
  height: 36px;
}

.social {
  gap: 18px;
  margin-right: -12px;
  padding: 0 12px;
}

/* Glossy see-through surface shared by the navbar bar and the booking buttons */
.nav-pill,
.glass-btn,
.glass-toggle {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 46%,
    rgba(255, 255, 255, 0.02) 54%,
    rgba(255, 255, 255, 0.1) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 10px 30px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}

.nav-pill {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 54px;
  margin-top: -27px;
  border-radius: 9999px;
  opacity: 0;
  pointer-events: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.social a:hover {
  opacity: 0.55;
}

.social svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social svg .fill {
  fill: currentColor;
}


/* ---------- Smooth scrolling (Lenis) ---------- */

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ---------- Scroll cue ---------- */

.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 50;
  display: flex;
  gap: calc(var(--zip-gap) + 8px); /* one chevron each side of the zipper */
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--color-pure-linen);
  cursor: pointer;
  transform: translate3d(-50%, 0, 0);
  transition: opacity 0.6s var(--easing-morph-fade), transform 0.6s var(--easing-morph-fade);
  animation: cue-in 1.2s 0.6s var(--easing-morph-fade) both;
}

.scroll-cue.is-hidden {
  opacity: 0;
  transform: translate3d(-50%, 12px, 0);
  pointer-events: none;
}

.scroll-cue__chevrons {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.6;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: cue-bob 2s var(--easing-morph-fade) infinite;
  transition: stroke 0.2s ease;
}

.scroll-cue__chevrons path:last-child {
  animation: cue-fade 2s var(--easing-morph-fade) infinite;
}

.scroll-cue:hover .scroll-cue__chevrons {
  stroke: var(--color-pure-linen);
}

.scroll-cue:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
  border-radius: 6px;
}

@keyframes cue-bob {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes cue-fade {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes cue-in {
  from {
    opacity: 0;
    transform: translate3d(-50%, 12px, 0);
  }
}

/* ---------- Opening screen ---------- */

.preloader {
  display: none;
}

.is-loading .preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: block;
  /* Same graphite as the canvas coat, so nothing flashes before it is painted */
  background: linear-gradient(#292929, #0d0d0d);
  touch-action: none;
  cursor: grab;
  isolation: isolate;
  /* Fallback if the script never takes over */
  animation: preloader-out 0.5s ease 8s forwards;
}

.preloader.is-painted {
  background: none;
}

.preloader.is-revealed {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.preloader__coat {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.preloader__pixels {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.preloader__count,
.preloader__foot {
  position: absolute;
  z-index: 2;
  margin: 0;
  pointer-events: none;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.preloader__count {
  top: 50%;
  left: 50%;
  display: flex;
  align-items: flex-start;
  font-size: clamp(72px, 13vw, 180px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  font-feature-settings: "tnum";
  color: var(--color-pure-linen);
  transform: translate(-50%, -50%);
}

.preloader__count sup {
  margin: 0.14em 0 0 6px;
  font-size: 0.22em;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
}

.preloader__foot {
  right: var(--gutter);
  bottom: 26px;
  left: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.preloader__foot p {
  margin: 0;
}

.preloader__bar {
  position: relative;
  flex-basis: 100%;
  height: 1px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.preloader__bar span {
  position: absolute;
  inset: 0;
  background: var(--color-pure-linen);
  transform: scaleX(0);
  transform-origin: left;
}

/* The opening animations wait until the screen is lifted */
.is-loading body *:not(.preloader):not(.preloader *) {
  animation-play-state: paused !important;
}

@keyframes preloader-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ---------- Scroll percentage ---------- */

.scroll-progress {
  position: fixed;
  right: var(--gutter);
  bottom: 26px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); /* stays legible over bright photos */
  animation: fade-in 1.2s 0.8s ease both;
}

.scroll-progress p {
  margin: 0;
}

.scroll-progress__label {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.55);
}

.scroll-progress__value {
  display: flex;
  align-items: flex-start;
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  color: var(--color-pure-linen);
}

.scroll-progress__value sup {
  margin: 0.18em 0 0 4px;
  font-size: 0.3em;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
}

.scroll-progress__bar {
  position: relative;
  width: 100%;
  min-width: 72px;
  height: 1px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.scroll-progress__bar span {
  position: absolute;
  inset: 0;
  background: var(--color-pure-linen);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s linear;
}

/* ---------- Stage (pinned scroll sequence) ---------- */

.stage {
  position: relative;
  height: 450vh; /* same animation pace, no long hold once the grid aligns */
}

.stage__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--color-deep-void);
}

.stage__backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.stage__backdrop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(36px) brightness(0.55);
  transform: scale(1.15);
}

.hero {
  position: absolute;
  inset: 0;
  z-index: 4; /* above the zipper, but never takes clicks */
  pointer-events: none;
  will-change: transform, opacity;
}

/* Label set vertically along the left edge, centred top to bottom, reading upwards */
.hero__eyebrow {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  font-size: clamp(12px, 1.15vw, 15px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  animation: fade-in 1.2s 0.3s ease both; /* fade only: transform is used for the rotation */
}

.hero__eyebrow i {
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.5);
}

/* Morphing phrases */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* Gallery grid — positions are set from main.js */

.gallery {
  position: absolute;
  inset: 0;
  z-index: 1; /* keeps card z-indexes below the feature image */
  opacity: 0;
}

.card {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  border-radius: var(--radius-cards);
  background: #1a1a1a;
  will-change: transform, opacity;
}

.card img,
.card video,
.feature video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Always full-viewport; the visible card shape comes from clip-path (no layout work while scrolling). */
.feature {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  clip-path: inset(0 50%); /* closed until the zipper opens it */
  will-change: clip-path;
}

.feature video {
  will-change: transform;
}

/* Zipper overlay — geometry is drawn from main.js in viewport pixels */

.zipper {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.zipper__fabric {
  fill: url(#zipper-weave);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

@media (min-width: 810px) {
  /* Soft shadow where the fabric lifts off the video (desktop only, it is costly to repaint) */
  .zipper__fabric--l {
    filter: drop-shadow(10px 0 18px rgba(0, 0, 0, 0.55));
  }

  .zipper__fabric--r {
    filter: drop-shadow(-10px 0 18px rgba(0, 0, 0, 0.55));
  }
}

.zipper__tape {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-linejoin: round;
}

.zipper__teeth .tooth--a {
  fill: rgba(255, 255, 255, 0.82);
  stroke: rgba(0, 0, 0, 0.45);
  stroke-width: 0.75;
}

.zipper__teeth .tooth--b {
  fill: rgba(255, 255, 255, 0.6);
  stroke: rgba(0, 0, 0, 0.45);
  stroke-width: 0.75;
}

.zipper__mouth {
  fill: rgba(255, 255, 255, 0.28);
}

.zipper__body {
  fill: rgba(255, 255, 255, 0.36);
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1;
}

.zipper__ridge {
  fill: rgba(255, 255, 255, 0.55);
}

.zipper__tab {
  fill: rgba(255, 255, 255, 0.3);
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1;
  transition: stroke 0.25s ease;
}

.zipper__pulse {
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: zip-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.zipper.is-open .zipper__pulse {
  display: none; /* only while the zipper is still closed */
}

@keyframes zip-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

.zipper__hit {
  fill: none;
  pointer-events: all;
  cursor: pointer;
}

.zipper__slider:hover .zipper__tab {
  stroke: var(--color-pure-linen);
}

/* ---------- Atelier (booking section) ---------- */

.atelier {
  --hairline: rgba(255, 255, 255, 0.14);
  position: relative; /* no overflow clipping here: it would stop the service panel pinning */
  background: var(--color-deep-void);
  color: var(--color-pure-linen);
}

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  padding: 34px 0 30px;
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee span {
  padding: 0 34px;
  font-size: clamp(26px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--color-pure-linen);
}

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

/* Services — pinned panels scrubbed by scroll (positions set from main.js) */

.book__track {
  height: 500vh; /* one screen per service, plus one */
}

.book__pin {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100svh;
  padding: 0 var(--gutter);
  overflow: hidden;
}

.book__eyebrow {
  position: absolute;
  top: 104px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  font-size: var(--text-body-sm);
  letter-spacing: 0.15em;
  color: var(--color-faded-stone);
}

.book__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  width: 100%;
  max-width: 1200px;
}

.book__nums {
  position: relative;
  flex: none;
  width: 12.5rem;
  height: 64px;
}

.book__num {
  position: absolute;
  inset: 0;
  margin: 0;
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  font-feature-settings: "tnum";
}

.book__images {
  position: relative;
  flex: none;
  width: 25rem;
  height: 32.5rem;
}

.book__image {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-cards);
  background: #111;
  will-change: transform, filter, opacity;
}

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

.book__texts {
  position: relative;
  flex: 0 1 20rem;
  height: 17rem;
}

.book__text {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transform: translateY(-50%);
}

.book__meta {
  margin: 0;
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-faded-stone);
}

.book__meta span {
  display: none; /* the number shows here only on phones */
}

.book__title {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.book__desc {
  margin: 0;
  font-size: var(--text-body-lg);
  font-weight: 300;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.64);
}

.glass-btn {
  position: relative;
  isolation: isolate; /* keeps the shine layers behind the label */
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  margin-top: 8px;
  padding: 0 22px;
  overflow: hidden;
  border-radius: 9999px;
  color: var(--color-pure-linen);
  font-size: var(--text-body-sm);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 0.4s ease,
    box-shadow 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}

/* Hover: the glass brightens and a glossy streak sweeps across it */
.glass-btn::before,
.glass-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

.glass-btn::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-btn::after {
  inset: -2px auto -2px 0;
  width: 55%;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-140%) skewX(-18deg);
}

.glass-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 0.5s var(--ease-out);
}

.glass-btn:hover,
.glass-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    0 12px 32px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(255, 255, 255, 0.18);
}

.glass-btn:hover::before,
.glass-btn:focus-visible::before {
  opacity: 1;
}

.glass-btn:hover::after,
.glass-btn:focus-visible::after {
  transform: translateX(260%) skewX(-18deg);
  transition: transform 0.9s var(--ease-out);
}

.glass-btn:hover svg,
.glass-btn:focus-visible svg {
  transform: translateX(6px);
}

.glass-btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.12s;
}

.glass-btn:focus-visible {
  outline: 1px solid var(--color-pure-linen);
  outline-offset: 4px;
}

/* Book / contact toggle: one glass pill, two sides. The chosen side sits on a raised glass
   pad; the other side sits recessed in the groove, so it is always clear which one is on. */
.glass-toggle {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 100%;
  margin-top: 8px;
  padding: 4px;
  overflow: hidden;
  border-radius: 9999px;
}

/* The groove: shaded inside so the pad reads as lifted out of it */
.glass-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.glass-toggle__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  z-index: -1;
  width: calc(50% - 4px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.14) 48%, rgba(255, 255, 255, 0.06) 52%, rgba(255, 255, 255, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -2px 3px rgba(0, 0, 0, 0.18),
    0 1px 1px rgba(0, 0, 0, 0.4),
    0 6px 14px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(255, 255, 255, 0.12);
  transition: transform 0.55s var(--ease-out);
}

.glass-toggle[data-side="contact"] .glass-toggle__thumb {
  transform: translateX(100%);
}

/* The glossy streak from the single button sweeps across the whole pill */
.glass-toggle::after {
  content: "";
  position: absolute;
  inset: -2px auto -2px 0;
  z-index: -1;
  width: 40%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-140%) skewX(-18deg);
  pointer-events: none;
}

.glass-toggle:hover::after {
  transform: translateX(360%) skewX(-18deg);
  transition: transform 1.1s var(--ease-out);
}

.glass-toggle:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.glass-toggle__opt {
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 9999px;
  background: none;
  color: rgba(255, 255, 255, 0.45);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6); /* pressed-in lettering in the groove */
  cursor: pointer;
  transition: color 0.4s ease, text-shadow 0.4s ease, transform 0.12s ease;
}

.glass-toggle__opt:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* The chosen side: bright, raised lettering on the pad */
.glass-toggle__opt[aria-pressed="true"] {
  color: var(--color-pure-linen);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.glass-toggle__opt:active {
  transform: scale(0.96);
}

.glass-toggle__opt:focus-visible {
  outline: 1px solid var(--color-pure-linen);
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .glass-toggle__opt {
    padding: 0 12px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glass-btn::after,
  .glass-toggle::after {
    display: none;
  }

  .glass-toggle__thumb {
    transition: none;
  }

  .glass-btn:hover,
  .glass-btn:focus-visible,
  .glass-btn:active {
    transform: none;
  }
}

.book__dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.book__dots span {
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}

/* Small laptops: tighter row so the text column keeps room for the book / contact toggle */
@media (min-width: 992px) and (max-width: 1239px) {
  .book__row {
    gap: 40px;
  }

  .book__nums {
    width: 6rem;
  }

  .book__images {
    width: 22rem;
    height: 28.6rem;
  }

  .book__texts {
    flex: 0 0 19.5rem;
  }
}

@media (max-width: 991px) {
  .book__row {
    flex-direction: column;
    gap: 32px;
  }

  .book__nums {
    width: auto;
    min-width: 6rem;
  }

  .book__num {
    text-align: center;
  }

  .book__images {
    width: 20rem;
    height: 26rem;
    overflow: hidden;
    border-radius: var(--radius-cards);
  }

  .book__texts {
    flex: none;
    width: min(22rem, 100%);
    height: 13rem;
  }

  .book__text {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .book__eyebrow,
  .book__nums {
    display: none;
  }

  .book__meta span {
    display: inline; /* the number joins the meta line */
  }

  .book__row {
    gap: 22px;
  }

  .book__images {
    width: min(20rem, calc(42svh * 0.77), calc(100vw - 2 * var(--gutter)));
    height: min(26rem, 42svh);
  }

  .book__texts {
    height: 12.5rem;
  }

  .book__text {
    gap: 10px;
  }

  .book__title {
    font-size: 24px;
    line-height: 1.15;
  }

  .book__desc {
    font-size: 14px;
  }

  .book__dots {
    bottom: 24px;
  }
}

.atelier__signature {
  margin: 0;
  padding: 0 12px 72px;
  font-size: 6.6vw; /* one line for the full 20-letter name on every screen */
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

/* ---------- Booking popup ---------- */

.booking {
  overscroll-behavior: contain;
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-deep-void);
}

.booking::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.booking[open] .booking__panel {
  animation: panel-in 0.6s var(--ease-out) both;
}

.booking[open]::backdrop {
  animation: fade-in 0.4s ease both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.booking__panel {
  display: flex;
  flex-direction: column;
  max-height: min(780px, calc(100svh - 32px));
  border-radius: var(--radius-cards);
  background: var(--color-pure-linen);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}

.booking__head {
  position: relative;
  padding: 30px 34px 0;
}

.booking__count {
  margin: 0 0 10px;
  font-size: var(--text-body-sm);
  letter-spacing: 0.15em;
  color: var(--color-faded-stone);
  font-feature-settings: "tnum";
}

.booking__count span {
  color: var(--color-deep-void);
}

.booking__title {
  margin: 0;
  padding-right: 40px;
  font-size: clamp(24px, 3vw, var(--text-heading-lg));
  font-weight: 300;
  line-height: 1.1;
}

.booking__close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  background: none;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease;
}

.booking__close:hover {
  transform: rotate(90deg);
  border-color: var(--color-deep-void);
}

.booking__close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.booking__progress {
  height: 1px;
  margin-top: 24px;
  background: var(--hairline);
}

.booking__progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--color-deep-void);
  transition: width 0.6s var(--ease-out);
}

.booking__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 34px;
}

.step {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  animation: step-in 0.5s var(--ease-out) both;
}

.step[hidden] {
  display: none;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
}

/* Step 1 — service options */

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

.option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-cards);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option__num {
  font-size: var(--text-caption);
  letter-spacing: 0.15em;
  color: var(--color-faded-stone);
}

.option__name {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.option__desc {
  font-size: var(--text-body-sm);
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #555;
}

.option__meta {
  margin-top: auto;
  font-size: var(--text-caption);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-faded-stone);
}

.option:hover {
  border-color: var(--color-deep-void);
}

.option:has(input:checked) {
  background: var(--color-deep-void);
  border-color: var(--color-deep-void);
  color: var(--color-pure-linen);
}

.option:has(input:checked) .option__desc,
.option:has(input:checked) .option__meta,
.option:has(input:checked) .option__num {
  color: rgba(255, 255, 255, 0.65);
}

.option:has(input:focus-visible) {
  outline: 1px solid var(--color-deep-void);
  outline-offset: 3px;
}

/* Step 2 — calendar and times */

.step[data-step="2"]:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 34px;
}

.calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.calendar__month {
  margin: 0;
  font-size: var(--text-body-lg);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.calendar__nav {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  background: none;
  cursor: pointer;
}

.calendar__nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.calendar__nav svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.calendar__weekdays,
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar__weekdays span {
  padding: 6px 0;
  font-size: var(--text-caption);
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--color-faded-stone);
}

.day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 9999px;
  background: none;
  font-size: var(--text-body);
  font-feature-settings: "tnum";
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.day:hover:not(:disabled) {
  background: #f0f0f0;
}

.day:disabled {
  color: #c8c8c8;
  cursor: default;
}

.day.is-today {
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.day[aria-pressed="true"] {
  background: var(--color-deep-void);
  color: var(--color-pure-linen);
}

.times__label {
  margin: 8px 0 16px;
  font-size: var(--text-body-sm);
  letter-spacing: 0.05em;
  color: var(--color-faded-stone);
}

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

.time {
  padding: 12px 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-buttons);
  background: none;
  font-size: var(--text-body);
  letter-spacing: 0.05em;
  font-feature-settings: "tnum";
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.time:hover:not(:disabled) {
  border-color: var(--color-deep-void);
}

.time:disabled {
  color: #b5b5b5;
  border-color: rgba(0, 0, 0, 0.06);
  text-decoration: line-through;
  cursor: default;
}

/* Hidden spam trap: people never see it, bots tend to fill it in */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.time[aria-pressed="true"] {
  background: var(--color-deep-void);
  border-color: var(--color-deep-void);
  color: var(--color-pure-linen);
}

/* Step 3 — details */

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field span {
  font-size: var(--text-body-sm);
  letter-spacing: 0.05em;
  color: #555;
}

.field em {
  font-style: normal;
  color: var(--color-faded-stone);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0;
  background: none;
  color: var(--color-deep-void);
  font: inherit;
  font-size: var(--text-body-lg);
  font-weight: 300;
  letter-spacing: 0.02em;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--color-deep-void);
}

.field [aria-invalid="true"] {
  border-bottom: 2px solid var(--color-deep-void);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center / 14px;
  cursor: pointer;
}

/* Step 4 — review */

.summary {
  margin: 0;
}

.summary div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}

.summary div:last-child {
  border-bottom: 1px solid var(--hairline);
}

.summary dt {
  font-size: var(--text-caption);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-faded-stone);
  padding-top: 4px;
}

.summary dd {
  margin: 0;
  font-size: var(--text-body-lg);
  font-weight: 300;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.booking__fine {
  margin: 20px 0 0;
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: var(--color-faded-stone);
}

/* Done */

.step--done:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0 20px;
  text-align: center;
}

.done__mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 0 24px;
  border: 1px solid var(--color-deep-void);
  border-radius: 9999px;
}

.done__mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: draw 0.8s 0.2s var(--ease-out) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.done__title {
  margin: 0 0 10px;
  font-size: var(--text-heading-lg);
  font-weight: 300;
}

.done__text {
  max-width: 400px;
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #555;
}

/* Footer */

.booking__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 34px 26px;
  border-top: 1px solid var(--hairline);
}

.booking__error {
  flex: 1;
  margin: 0;
  font-size: var(--text-body-sm);
  letter-spacing: 0.02em;
}

.booking__back {
  padding: 12px 6px;
  border: 0;
  background: none;
  font-size: var(--text-body-sm);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}

.booking__back:hover {
  opacity: 0.6;
}

.booking__back[hidden] {
  display: none;
}

.booking__next {
  padding: 15px 26px;
  border: 0;
  border-radius: var(--radius-buttons);
  background: var(--color-deep-void);
  color: var(--color-pure-linen);
  font-size: var(--text-body-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.booking__next:hover {
  opacity: 0.85;
}

.booking__next:disabled {
  opacity: 0.5;
  cursor: progress;
}

/* ---------- Gallery viewer ---------- */

.card,
.feature {
  cursor: zoom-in;
}

.lightbox {
  touch-action: none; /* swipes change the item; they never scroll the page behind */
  overscroll-behavior: contain;
  width: 100vw;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.94);
  color: var(--color-pure-linen);
  overflow: hidden;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox[open] {
  animation: fade-in 0.4s ease both;
}

.lightbox__stage {
  position: absolute;
  inset: 72px 96px 76px;
  display: grid;
  place-items: center;
}

.lightbox__stage img,
.lightbox__stage video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-cards);
  animation: viewer-in 0.6s var(--ease-out) both;
}

@keyframes viewer-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

.lightbox__caption {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  transform: translateX(-50%);
  font-size: var(--text-caption);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-feature-settings: "tnum";
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.lightbox__caption i {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out);
}

.lightbox__btn:hover {
  border-color: var(--color-pure-linen);
}

.lightbox__btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.lightbox__close {
  top: 20px;
  right: 20px;
}

.lightbox__close:hover {
  transform: rotate(90deg);
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  margin-top: -23px;
}

.lightbox__prev {
  left: 28px;
}

.lightbox__next {
  right: 28px;
}

.lightbox__prev:hover {
  transform: translateX(-3px);
}

.lightbox__next:hover {
  transform: translateX(3px);
}

/* ---------- Responsive ---------- */

@media (max-width: 809px) {
  :root {
    --gutter: 20px;
  }

  .site-header {
    height: 72px;
  }

  .social {
    gap: 12px;
  }


  .scroll-cue {
    bottom: 22px;
    gap: 40px;
  }

  .scroll-cue__chevrons {
    width: 30px;
    height: 30px;
  }

  .scroll-progress {
    bottom: 22px;
  }

  /* Touch scrolling is native, so give the cover sequence a longer track on phones. */
  .stage {
    height: 600vh;
  }



  .hero__eyebrow {
    left: 12px;
    gap: 14px;
    font-size: 12px;
    letter-spacing: 0.26em;
  }

  .hero__eyebrow i {
    height: 36px;
  }

  .marquee {
    padding: 24px 0 20px;
  }


  .atelier__signature {
    padding-bottom: 96px;
  }

  /* Two lines on phones so the name finishes before the zipper lane in the centre */
  .brand,
  .social {
    height: 38px;
  }

  .brand {
    margin-left: -10px;
    padding: 0 10px;
  }

  .brand img {
    height: clamp(22px, 6.8vw, 30px); /* stays clear of the zipper pull at rest on small phones */
  }

  .social {
    margin-right: -8px;
    padding: 0 8px;
  }

  .nav-pill {
    height: 46px;
    margin-top: -23px;
  }

  /* Popup becomes a full-screen sheet */
  .booking {
    width: 100vw;
    height: 100svh;
    margin: 0;
  }

  .booking__panel {
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .booking__head {
    padding: 24px 20px 0;
  }

  .booking__close {
    top: 16px;
    right: 16px;
  }

  .booking__body {
    padding: 24px 20px;
  }

  .booking__foot {
    flex-wrap: wrap;
    padding: 16px 20px 22px;
  }

  .booking__error {
    flex-basis: 100%;
    order: -1;
  }

  .booking__error:empty {
    display: none;
  }

  .booking__next {
    margin-left: auto;
  }

  .options,
  .fields {
    grid-template-columns: 1fr;
  }

  .lightbox__stage {
    inset: 76px 12px 96px;
  }

  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 18px;
    margin-top: 0;
  }

  .lightbox__prev {
    left: 20px;
  }

  .lightbox__next {
    right: 20px;
  }

  .lightbox__caption {
    bottom: 33px;
  }

  .option {
    min-height: 0;
  }

  .step[data-step="2"]:not([hidden]) {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .summary div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .scroll-cue,
  .scroll-cue__chevrons,
  .scroll-cue__chevrons path,
  .marquee__track,
  .zipper__pulse,
  .hero__eyebrow,
  .step,
  .booking[open] .booking__panel,
  .lightbox[open],
  .lightbox__stage img,
  .lightbox__stage video {
    animation: none;
  }


  .zipper__tab {
    transition-duration: 0.001ms;
  }

  .preloader.is-revealed {
    transition-duration: 0.001ms;
  }

}
