/* ---------- Role switch in the hero: Product Designer ⟷ Photographer ---------- */
/* A bare "switch account" icon (two arrows) in the muted grey; ink on hover. */
.hero .hero-sub { display: flex; align-items: center; gap: 10px; }
.is-scrolled .hero-sub { pointer-events: none; }

.role-switch {
  position: relative; flex: none; display: grid; place-items: center;
  width: 24px; height: 24px; margin-left: -2px;
  color: var(--muted); transition: color .2s ease;
}
.role-switch:hover, .role-switch:focus-visible { color: var(--ink); }
.role-switch svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.role-switch:hover svg { transform: rotate(180deg); }
.role-switch.is-switching svg { transform: rotate(360deg); }

/* Label under the button on hover (same glass pill as "See Details") */
.role-switch::after {
  content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 10px); z-index: 2;
  padding: 4px 10px; border-radius: 0; white-space: nowrap;
  font-size: 12px; line-height: 16px; font-weight: 300; color: var(--ink);
  background: linear-gradient(rgba(255, 255, 255, .92), rgba(255, 255, 255, .8));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
  opacity: 0; transform: translate(-50%, -4px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.role-switch:hover::after, .role-switch:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.role-switch:focus-visible { outline-offset: 2px; border-radius: 6px; }
@media (hover: none) { .role-switch::after { display: none; } }

/* ---------- Camera "click" on the way to photography ---------- */
/* A ring of ink around a round hole: the hole shrinks to nothing (the lens closes), then a flash. */
.iris { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; pointer-events: none; overflow: hidden; }
@property --iris { syntax: "<length>"; inherits: false; initial-value: 0px; }
.iris-hole { position: absolute; inset: 0; background: #111; --iris: 0px;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 1px));
  mask: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 1px)); }
.iris-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.is-shooting .iris { display: grid; pointer-events: auto; }
.is-shooting .iris-hole { animation: iris-close .32s cubic-bezier(.7, 0, .84, 0) both; }
.is-shooting .iris-flash { animation: iris-flash .12s ease-out .3s both; }
@keyframes iris-close { from { --iris: 90vmax; } to { --iris: 0px; } }
@keyframes iris-flash { 0% { opacity: 0; } 40% { opacity: .55; } 100% { opacity: .55; } }
