/* The photograph and the four hit areas share the same edge-to-edge box.
   Both sets of percentages come from the lettering in their respective image. */
.room-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.room-art picture, .room-art img {
  display: block;
  width: 100%;
  height: 100%;
}
.room-art img { object-fit: fill; }
.room-art .room-photo--mobile { display: none; }
.atelier-intro { z-index: 1; }
#allrecords .atelier-intro .hero-style-call {
  color: var(--cream);
  min-height: 44px;
}
.room-art .room-link {
  position: absolute;
  display: block;
  transform: translate(-50%, -50%);
  min-width: 44px;
  min-height: 44px;
  border-radius: 6px;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.room-link::before {
  content: "";
  position: absolute;
  inset: -12% -12%;
  background: radial-gradient(ellipse, rgba(255, 233, 188, .27), rgba(255, 232, 190, .11) 40%, transparent 73%);
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}
@media (hover: hover) {
  .room-link:hover::before { opacity: 1; }
}
.room-link:active::before, .room-link:focus-visible::before { opacity: 1; }
.room-link:active::before { transition-duration: 60ms; }
.room-link:focus-visible { outline: 2px solid #662d30; outline-offset: 2px; }
.room-link--services { left: 10.589%; top: 20.5692%; width: 8.4422%; height: 4.7747%; }
.room-link--clients { left: 29.1344%; top: 23.3152%; width: 7.8071%; height: 4.7037%; }
.room-link--stylist { left: 88.6909%; top: 36.633%; width: 8.6164%; height: 10.0706%; }
.room-link--book { left: 53.4545%; top: 74.8434%; width: 21.0909%; height: 4.3096%; }

@media (max-width: 800px) {
  .room-art .room-photo--desktop { display: none; }
  .room-art .room-photo--mobile { display: block; }
  #top.atelier-hero > .room-art { display: block !important; }
  .mobile-atelier { z-index: 1; pointer-events: none; }
  .mobile-atelier .hero-mobile-nav, .mobile-atelier-intro { pointer-events: auto; }
  .room-link--services { left: 18.4574%; top: 35.3762%; width: 15.5663%; height: 3.0341%; }
  .room-link--clients { left: 50.5728%; top: 37.0105%; width: 14.2228%; height: 2.9892%; }
  .room-link--stylist { left: 83.0%; top: 46.0415%; width: 17.0382%; height: 6.4115%; }
  .room-link--book { left: 52.8846%; top: 76.1314%; width: 43.4615%; height: 2.8273%; }
}

/* A single broad beam with a faint ambient lift across the entire photograph. */
@media (prefers-reduced-motion: no-preference) {
  .room-art::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    background-color: rgba(255, 230, 184, .055);
    background-image: linear-gradient(118deg, transparent 29%, rgba(255, 235, 198, .06) 41%, rgba(255, 238, 205, .18) 50%, rgba(255, 235, 198, .06) 59%, transparent 71%);
    background-size: 300% 100%;
    animation: room-sunlight 8s ease-in-out 1s infinite paused;
  }
  @keyframes room-sunlight {
    0% { opacity: 0; background-position: 100% 50%; }
    9% { opacity: .85; }
    23% { opacity: .85; }
    34%, 100% { opacity: 0; background-position: 0% 50%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .room-link::before { transition: none; }
}

.ink-services { left:6.63876%; top:18.59724%; width:7.83493%; height:3.61318%; --letter-mask:url("atelier-room-services-mask.png"); --line-left:1.5267%; --line-width:97.7099%; --line-top:78.4926%; --line-rise:23.5294%; }
.ink-clients { left:25.53828%; top:21.36026%; width:7.17703%; height:3.50691%; --letter-mask:url("atelier-room-clients-mask.png"); --line-left:1.6667%; --line-width:96.6667%; --line-top:81.1430%; --line-rise:21.5127%; }
.ink-stylist { left:84.62919%; top:31.98725%; width:8.13397%; height:8.92667%; --letter-mask:url("atelier-room-stylist-mask.png"); --line-left:1.4706%; --line-width:97.0588%; --line-top:100.0000%; --line-rise:0.0000%; }
.ink-book { left:43.12201%; top:73.00744%; width:20.63397%; height:3.29437%; --letter-mask:url("atelier-room-book-mask.png"); --line-left:0.5797%; --line-width:98.8406%; --line-top:100.0000%; --line-rise:0.0000%; }
 @media (max-width:800px) {
.ink-services { left:11.36364%; top:34.13810%; width:14.18182%; height:2.31772%; --letter-mask:url("mobile-atelier-services-mask.png"); --line-left:1.2821%; --line-width:97.4359%; --line-top:80.2213%; --line-rise:20.4883%; }
.ink-clients { left:44.18182%; top:35.82810%; width:12.72727%; height:2.17286%; --letter-mask:url("mobile-atelier-clients-mask.png"); --line-left:1.4286%; --line-width:97.8571%; --line-top:83.6111%; --line-rise:19.0278%; }
.ink-stylist { left:75.09091%; top:43.11927%; width:15.81818%; height:5.69773%; --letter-mask:url("mobile-atelier-stylist-mask.png"); --line-left:1.1494%; --line-width:97.7011%; --line-top:99.1525%; --line-rise:0.0000%; }
.ink-book { left:31.72727%; top:74.98793%; width:42.27273%; height:2.22115%; --letter-mask:url("mobile-atelier-book-mask.png"); --line-left:0.4301%; --line-width:99.1398%; --line-top:95.6522%; --line-rise:0.0000%; }
}
.room-ink { position:absolute; pointer-events:none; }
.room-ink::before {
  content:""; position:absolute; inset:0; opacity:0;
  background:linear-gradient(90deg,transparent 28%,#ffedd3 50%,transparent 72%) 100% 0 / 400% 100%;
  -webkit-mask:var(--letter-mask) center / 100% 100% no-repeat;
  mask:var(--letter-mask) center / 100% 100% no-repeat;
}
/* Endpoints use the visible ink bounds. Only the gap and stroke stay in screen pixels. */
.room-rule {
  position:absolute; left:var(--line-left); width:var(--line-width);
  top:calc(var(--line-top) + 7px); height:calc(var(--line-rise) + 1.5px);
  opacity:0; pointer-events:none;
}
.room-rule::before {
  content:""; position:absolute; inset:0; background:#711d36;
  clip-path:polygon(0 0,100% calc(100% - 1.5px),100% 100%,0 1.5px);
}
@media (prefers-reduced-motion:no-preference) {
  .room-playing .room-art::before {animation-play-state:running}
  .room-playing .room-ink::before { animation:letter-glint 8s ease-in-out 1s infinite; }
  .room-playing .room-ink > .room-rule { animation:letter-line 8s ease-out 1s infinite; }
  @keyframes letter-glint {
    0% {background-position:100% 0;opacity:0}
    3%,12% {opacity:.65}
    15%,100% {background-position:0 0;opacity:0}
  }
  @keyframes letter-line {
    0%,15% {opacity:0;clip-path:inset(0 100% 0 0)}
    25%,50% {opacity:.78;clip-path:inset(0)}
    57%,100% {opacity:0;clip-path:inset(0)}
  }
}
@media (hover:hover) {
  .room-art .room-link:hover + .room-ink > .room-rule {animation:none;clip-path:inset(0);opacity:.8}
}
.room-art .room-link:is(:active,:focus-visible,.room-touched) + .room-ink > .room-rule {animation:none;clip-path:inset(0);opacity:.8}
.room-art .room-touched::before {opacity:1}
@media (prefers-reduced-motion:reduce) {
  .room-ink > .room-rule {opacity:.72; clip-path:inset(0)}
}
@media (max-width:800px) {
  .mobile-room-heading {position:absolute;inset:8px 0 auto;pointer-events:none}
  .mobile-room-heading .hero-mobile-nav {position:static;width:100%;margin:auto;flex-direction:column;gap:8px!important}
  .hero-mobile-nav > span {display:flex;justify-content:center;align-items:center;column-gap:clamp(10px,4vw,18px)}
  .mobile-room-heading .hero-mobile-nav a {padding-block:0}
  .mobile-room-heading .mobile-atelier-intro {position:static;margin:24px auto 0;pointer-events:none}
  .mobile-room-heading .mobile-atelier-intro h1 {margin-bottom:10px}
  .mobile-atelier-intro .room-caption {display:grid;justify-items:center;margin:0}
  .room-caption > span {grid-area:1 / 1;white-space:nowrap}
  .room-caption .room-hint {font-style:italic}
  .room-caption .room-subtitle {opacity:0}
  .room-playing .room-subtitle {animation:room-caption-in .35s ease 3s both}
  .room-playing .room-hint {animation:room-caption-out .35s ease 3s both}
  @keyframes room-caption-in {from {opacity:0} to {opacity:1}}
  @keyframes room-caption-out {from {opacity:1} to {opacity:0}}
  #top.atelier-hero {height:calc(100dvh + var(--room-drop,0px));background:#e4c5a4 url("room-wall-edge.png") center top / 100% 100% no-repeat}
  #top.atelier-hero > .room-art {top:var(--room-drop,0px)}
}
@media (max-width:800px) and (prefers-reduced-motion:reduce) {
  .room-playing .room-caption > span {animation-duration:0s}
}
