/* ==========================================================================
   CADANZ STUDIO — COSPLAY & MODELFOTOGRAFIE FOTOGALERIJ
   Asymmetric 4-Frame Salon Wall · Forged Carbon-Steel & Trash Polka Crimson
   Design Tokens: #0D0D0D · #1A1A1A · #F2F2F2 · #A3A3A3 · #B81D24
   ========================================================================== */

:root {
  --bg-primary: #0D0D0D;
  --bg-surface: #1A1A1A;
  --bg-surface-deep: #111113;
  --text-primary: #F2F2F2;
  --text-secondary: #A3A3A3;
  --text-muted: #737373;
  --accent-crimson: #B81D24;
  --accent-crimson-bright: #D9262E;
  --accent-crimson-soft: rgba(184, 29, 36, 0.18);
  --accent-crimson-border: rgba(184, 29, 36, 0.55);

  --md-sys-motion-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --md-sys-motion-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
  --md-sys-motion-standard: cubic-bezier(0.2, 0, 0, 1);

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Frame Geometry defaults */
  --frame-thickness: clamp(18px, 1.75vw, 27px);
  --mat-thickness: clamp(5px, 0.45vw, 7px);
  --corner-size: clamp(38px, 3.8vw, 60px);
  --crest-w: clamp(96px, 9.5vw, 146px);
  --crest-h: clamp(20px, 2vw, 30px);
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a,
a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none;
}

/* ==========================================================================
   Dark Brushed Obsidian & Steel Exhibition Wall (Cadanz Studio)
   ========================================================================== */
body {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  font-family: var(--font-ui);
  color: var(--text-primary);
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  background-color: #0B0B0C;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 0px,
      rgba(255, 255, 255, 0.018) 1px,
      rgba(0, 0, 0, 0.16) 1px,
      rgba(0, 0, 0, 0.16) 3px,
      transparent 3px,
      transparent 7px
    ),
    radial-gradient(
      ellipse 72% 60% at 50% 42%,
      rgba(56, 56, 62, 0.24) 0%,
      rgba(22, 22, 25, 0.35) 52%,
      rgba(8, 8, 9, 0.85) 100%
    ),
    radial-gradient(
      ellipse 52% 36% at 86% 12%,
      rgba(184, 29, 36, 0.14) 0%,
      rgba(13, 13, 13, 0) 68%
    ),
    radial-gradient(
      ellipse 44% 32% at 14% 88%,
      rgba(184, 29, 36, 0.09) 0%,
      rgba(13, 13, 13, 0) 68%
    );
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.26;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Mobile Floating Back Pill (hidden on desktop) */
.mobile-back-pill {
  display: none;
}

/* ==========================================================================
   Exhibition Header (Desktop / Tablet)
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: clamp(10px, 1.4dvh, 18px) clamp(16px, 2.2vw, 32px) clamp(2px, 0.5dvh, 6px);
}

.header-back-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 3px;
  background: rgba(24, 24, 27, 0.88);
  border: 1px solid rgba(242, 242, 242, 0.14);
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.header-back-btn svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent-crimson-bright);
  flex-shrink: 0;
}

.header-back-btn:hover,
.header-back-btn:focus-visible {
  border-color: var(--accent-crimson);
  background: rgba(34, 20, 22, 0.92);
  outline: none;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.brand-overline {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.82vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-crimson-bright);
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
  line-height: 1.08;
}

.brand-title span {
  color: var(--accent-crimson-bright);
}

/* ==========================================================================
   Main Salon Wall Stage (4 Asymmetric, Non-Aligned Cadanz Studio Frames)
   ========================================================================== */
.gallery-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(6px, 1dvh, 12px) clamp(12px, 1.8vw, 28px);
}

.salon-wall {
  position: relative;
  width: 100%;
  height: 100%;
}

/*
 * Desktop Salon Composition — 4 Distinct Sizes, Zero Aligned Edges:
 * Frame 1: left  4.5%, right 28.0%, top  6.5%, bottom 82.0%  (23.5% × 75.5%)
 * Frame 2: left 31.8%, right 65.2%, top  1.5%, bottom 47.0%  (33.4% × 45.5%)
 * Frame 3: left 38.5%, right 60.0%, top 54.5%, bottom 95.5%  (21.5% × 41.0%)
 * Frame 4: left 69.2%, right 96.0%, top 21.5%, bottom 87.0%  (26.8% × 65.5%)
 */
.salon-frame-1 {
  position: absolute;
  left: 4.5%;
  top: 6.5%;
  width: 23.5%;
  height: 75.5%;
  --frame-thickness: clamp(20px, 1.8vw, 28px);
  --corner-size: clamp(42px, 4vw, 62px);
  --crest-w: clamp(98px, 9.5vw, 144px);
  --crest-h: clamp(20px, 1.9vw, 30px);
}

.salon-frame-2 {
  position: absolute;
  left: 31.8%;
  top: 1.5%;
  width: 33.4%;
  height: 45.5%;
  --frame-thickness: clamp(18px, 1.6vw, 25px);
  --corner-size: clamp(38px, 3.6vw, 56px);
  --crest-w: clamp(104px, 10vw, 152px);
  --crest-h: clamp(21px, 2vw, 32px);
}

.salon-frame-3 {
  position: absolute;
  left: 38.5%;
  top: 54.5%;
  width: 21.5%;
  height: 41%;
  --frame-thickness: clamp(16px, 1.35vw, 21px);
  --corner-size: clamp(32px, 3vw, 46px);
}

.salon-frame-4 {
  position: absolute;
  left: 69.2%;
  top: 21.5%;
  width: 26.8%;
  height: 65.5%;
  --frame-thickness: clamp(19px, 1.7vw, 26px);
  --corner-size: clamp(40px, 3.8vw, 58px);
  --crest-w: clamp(94px, 9vw, 138px);
  --crest-h: clamp(19px, 1.85vw, 29px);
}

/* Portrait Desktop / Tablet View */
@media (min-width: 769px) and (max-aspect-ratio: 1 / 1) {
  .salon-frame-1 {
    left: 4%;
    top: 2%;
    width: 60%;
    height: 26.5%;
    --frame-thickness: clamp(18px, 2.2vw, 28px);
    --corner-size: clamp(42px, 5vw, 66px);
    --crest-w: clamp(108px, 12.5vw, 160px);
    --crest-h: clamp(22px, 2.6vw, 34px);
  }

  .salon-frame-2 {
    left: 69.5%;
    top: 17.5%;
    width: 26.5%;
    height: 28.5%;
    --frame-thickness: clamp(14px, 1.6vw, 21px);
    --corner-size: clamp(30px, 3.5vw, 48px);
    --crest-w: clamp(74px, 8.2vw, 110px);
    --crest-h: clamp(16px, 1.8vw, 24px);
  }

  .salon-frame-3 {
    left: 11.5%;
    top: 34%;
    width: 45.5%;
    height: 35%;
    --frame-thickness: clamp(19px, 2.3vw, 29px);
    --corner-size: clamp(42px, 5vw, 68px);
  }

  .salon-frame-4 {
    left: 29.5%;
    top: 74.5%;
    width: 53.5%;
    height: 22%;
    --frame-thickness: clamp(16px, 1.9vw, 25px);
    --corner-size: clamp(36px, 4.2vw, 58px);
    --crest-w: clamp(96px, 11vw, 146px);
    --crest-h: clamp(20px, 2.3vw, 31px);
  }
}

/* ==========================================================================
   Cadanz Studio Forged Carbon-Steel & Crimson Frame System
   ========================================================================== */
.painting-frame {
  padding: var(--frame-thickness);
  border-radius: 3px;
  isolation: isolate;
  touch-action: pan-y;

  background:
    linear-gradient(
      142deg,
      #3A3A40 0%,
      #232327 18%,
      #141417 44%,
      #2D2D32 64%,
      #121214 86%,
      #08080A 100%
    );

  box-shadow:
    0 0 0 1px #060607,
    0 0 0 3px #2A2A2F,
    0 0 0 4px rgba(184, 29, 36, 0.34),
    0 24px 54px -8px rgba(0, 0, 0, 0.85),
    0 12px 24px -4px rgba(0, 0, 0, 0.72),
    inset 2px 2px 3px rgba(255, 255, 255, 0.16),
    inset -3px -3px 5px rgba(0, 0, 0, 0.85),
    inset 0 0 0 5px rgba(32, 32, 36, 0.78),
    inset 0 0 0 8px rgba(8, 8, 10, 0.75),
    inset 0 0 14px 6px rgba(0, 0, 0, 0.6);

  transition:
    transform 320ms var(--md-sys-motion-emphasized),
    box-shadow 320ms var(--md-sys-motion-emphasized);
}

/* Subtle curated dark forged-metal variations across the 4 salon frames */
.frame-tone-gunmetal {
  background:
    linear-gradient(
      138deg,
      #42434A 0%,
      #28292F 20%,
      #17181C 46%,
      #32343B 68%,
      #141518 88%,
      #09090B 100%
    );
}

.frame-tone-iron {
  background:
    linear-gradient(
      146deg,
      #343133 0%,
      #211E20 22%,
      #131112 48%,
      #2B2729 70%,
      #121011 88%,
      #080708 100%
    );
}

.frame-tone-crimson-edge {
  background:
    linear-gradient(
      140deg,
      #3E3638 0%,
      #262022 22%,
      #151214 48%,
      #322628 68%,
      #141012 88%,
      #090708 100%
    );
}

.painting-frame:hover,
.painting-frame.is-focused {
  z-index: 5;
  box-shadow:
    0 0 0 1px #060607,
    0 0 0 3px #3B3B42,
    0 0 0 4.5px rgba(217, 38, 46, 0.78),
    0 30px 64px -6px rgba(0, 0, 0, 0.92),
    0 0 28px rgba(184, 29, 36, 0.22),
    inset 2px 2px 3px rgba(255, 255, 255, 0.2),
    inset -3px -3px 5px rgba(0, 0, 0, 0.85),
    inset 0 0 0 5px rgba(38, 38, 44, 0.78),
    inset 0 0 0 8px rgba(8, 8, 10, 0.75),
    inset 0 0 14px 6px rgba(0, 0, 0, 0.6);
}

/* Machined beveled step molding */
.frame-molding-outer {
  position: absolute;
  inset: 5px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
  border: 1px solid rgba(242, 242, 242, 0.14);
  box-shadow:
    inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.12),
    inset -2px -2px 4px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(0, 0, 0, 0.75);
}

/* Raw brushed dark steel patina */
.frame-steel-patina {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0.42;
  background-image:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.18) 0%, transparent 18%),
    radial-gradient(circle at 86% 84%, rgba(184, 29, 36, 0.22) 0%, transparent 24%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7 0.14' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* Signature Cadanz Studio Crimson Inner Pinstripe Rabbet */
.frame-crimson-trim {
  position: absolute;
  inset: calc(var(--frame-thickness) - 6px);
  pointer-events: none;
  z-index: 3;
  border-radius: 1px;
  border: 1.5px solid rgba(184, 29, 36, 0.85);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.85),
    0 0 8px rgba(184, 29, 36, 0.28);
}

/* ==========================================================================
   Forged Corner Brackets & Top Crest Plates
   ========================================================================== */
.bracket-corner {
  position: absolute;
  width: var(--corner-size);
  height: var(--corner-size);
  pointer-events: none;
  z-index: 6;
  overflow: visible;
}

.bracket-tl { top: -4px; left: -4px; }
.bracket-tr { top: -4px; right: -4px; transform: scaleX(-1); }
.bracket-bl { bottom: -4px; left: -4px; transform: scaleY(-1); }
.bracket-br { bottom: -4px; right: -4px; transform: scale(-1, -1); }

.bracket-crest {
  position: absolute;
  left: 50%;
  width: var(--crest-w);
  height: var(--crest-h);
  pointer-events: none;
  z-index: 6;
  overflow: visible;
}

.bracket-top {
  top: -7px;
  transform: translateX(-50%);
}

/* ==========================================================================
   Recessed Dark Charcoal Passe-Partout & Photo Canvas
   ========================================================================== */
.frame-inner-mat {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
  padding: var(--mat-thickness);
  border-radius: 1px;
  background: linear-gradient(145deg, #212125 0%, #161619 50%, #0E0E10 100%);
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, 0.85),
    inset -1px -1px 2px rgba(255, 255, 255, 0.08);
}

.painting-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 1px;
  background-color: #09090B;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(242, 242, 242, 0.08);
}

.canvas-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.painting-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  will-change: transform, opacity;
}

.painting-slide.is-active {
  z-index: 2;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.painting-slide.is-standby {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.painting-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  transition: object-fit 250ms ease, filter 400ms var(--md-sys-motion-emphasized);
}

.salon-wall.is-fit-contain .painting-slide img {
  object-fit: contain;
  background: radial-gradient(circle at center, #18181B 0%, #0A0A0C 100%);
}

.canvas-rabbet-shadow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.65),
    inset 3px 4px 10px rgba(0, 0, 0, 0.55);
}

/* Brushed Steel Nameplate on Bottom Rail */
.frame-nameplate {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 46px);
  padding: 2px 14px;
  border-radius: 2px;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(180deg, #242428 0%, #141417 100%);
  border: 1px solid rgba(184, 29, 36, 0.65);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.8vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nameplate-desktop-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nameplate-mobile-brand {
  display: none;
}

.nameplate-artist {
  color: var(--accent-crimson-bright);
  font-weight: 700;
}

.nameplate-dot {
  color: var(--text-muted);
  margin: 0 5px;
}

/* ==========================================================================
   Clickable Left & Right Edges per Frame
   ========================================================================== */
.edge-trigger {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 8;
  width: clamp(54px, 24%, 118px);
  display: flex;
  align-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  color: var(--text-primary);
  outline: none;
  transition: background 260ms var(--md-sys-motion-standard);
}

.edge-prev {
  left: 0;
  justify-content: flex-start;
  padding-left: clamp(6px, 0.8vw, 14px);
  border-radius: 3px 0 0 3px;
}

.edge-next {
  right: 0;
  justify-content: flex-end;
  padding-right: clamp(6px, 0.8vw, 14px);
  border-radius: 0 3px 3px 0;
}

.edge-prev:hover,
.edge-prev:focus-visible {
  background: linear-gradient(
    to right,
    rgba(184, 29, 36, 0.28) 0%,
    rgba(184, 29, 36, 0.08) 54%,
    transparent 100%
  );
}

.edge-next:hover,
.edge-next:focus-visible {
  background: linear-gradient(
    to left,
    rgba(184, 29, 36, 0.28) 0%,
    rgba(184, 29, 36, 0.08) 54%,
    transparent 100%
  );
}

.edge-trigger:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(217, 38, 46, 0.9);
}

.edge-chevron-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: rgba(13, 13, 15, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(242, 242, 242, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
  color: var(--text-primary);
  opacity: 0.42;
  transform: scale(0.92);
  transition:
    opacity 200ms var(--md-sys-motion-emphasized),
    transform 200ms var(--md-sys-motion-emphasized),
    background-color 180ms ease,
    border-color 180ms ease;
}

.edge-chevron-pill svg {
  width: 20px;
  height: 20px;
}

.painting-frame:hover .edge-chevron-pill {
  opacity: 0.76;
}

.edge-trigger:hover .edge-chevron-pill,
.edge-trigger:focus-visible .edge-chevron-pill {
  opacity: 1;
  background: rgba(184, 29, 36, 0.92);
  border-color: rgba(242, 242, 242, 0.6);
  transform: scale(1.06);
}

.edge-trigger:active .edge-chevron-pill {
  transform: scale(0.94);
}

/* ==========================================================================
   Cadanz Studio Steel-Framed Bottom Control Bar (Desktop / Tablet)
   ========================================================================== */
.gallery-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4px, 0.8dvh, 10px) 24px clamp(12px, 1.8dvh, 22px);
}

.md-control-bar.cadanz-nav {
  position: relative;
  padding: 10px;
  border-radius: 3px;
  isolation: isolate;

  background: linear-gradient(142deg, #35353B 0%, #1F1F23 35%, #111114 75%, #09090B 100%);
  box-shadow:
    0 0 0 1px #060607,
    0 0 0 3px #2A2A2F,
    0 0 0 4px rgba(184, 29, 36, 0.42),
    0 16px 34px -6px rgba(0, 0, 0, 0.82),
    inset 2px 2px 2px rgba(255, 255, 255, 0.14),
    inset -2px -2px 3px rgba(0, 0, 0, 0.85);
}

.cadanz-nav .frame-molding-outer {
  inset: 3px;
}

.nav-crimson-trim {
  position: absolute;
  inset: 6px;
  pointer-events: none;
  z-index: 3;
  border-radius: 1px;
  border: 1px solid rgba(184, 29, 36, 0.78);
}

.nav-corner {
  width: 24px;
  height: 24px;
}

.nav-corner.bracket-tl { top: -3px; left: -3px; }
.nav-corner.bracket-tr { top: -3px; right: -3px; }
.nav-corner.bracket-bl { bottom: -3px; left: -3px; }
.nav-corner.bracket-br { bottom: -3px; right: -3px; }

.nav-inner-mat {
  position: relative;
  z-index: 4;
  padding: 3px;
  border-radius: 1px;
  background: #141417;
}

.nav-inner-canvas {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 6px 14px 6px 22px;
  border-radius: 1px;
  background: linear-gradient(180deg, #17171A 0%, #0E0E10 100%);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.75);
}

.photo-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.photo-title {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.photo-counter {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-crimson-bright);
  font-variant-numeric: tabular-nums;
}

.photo-counter:empty {
  display: none;
}

.bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Primary Crimson Action Chip ("Volgende 4") */
.md-tonal-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(255, 110, 116, 0.35);
  border-radius: 3px;
  background: linear-gradient(180deg, #D9262E 0%, #B81D24 58%, #8F1419 100%);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(184, 29, 36, 0.4);
  cursor: pointer;
  transition: filter 160ms ease, transform 150ms ease, box-shadow 160ms ease;
}

.md-tonal-chip svg {
  width: 15px;
  height: 15px;
}

.md-tonal-chip:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(217, 38, 46, 0.52);
}

.md-tonal-chip:active {
  transform: scale(0.97);
}

.md-tonal-chip:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.md-icon-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(242, 242, 242, 0.14);
  border-radius: 3px;
  background: rgba(26, 26, 30, 0.85);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.md-icon-btn svg {
  width: 17px;
  height: 17px;
}

.md-icon-btn:hover {
  background: rgba(184, 29, 36, 0.22);
  border-color: var(--accent-crimson);
  color: var(--text-primary);
}

.md-icon-btn[aria-pressed="true"] {
  background: var(--accent-crimson);
  border-color: var(--accent-crimson-bright);
  color: #FFFFFF;
}

.md-icon-btn:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* Ripple Effect */
.md-ripple-surface {
  overflow: hidden;
}

.md-ripple-wave {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  background: rgba(217, 38, 46, 0.34);
  animation: md-ripple-expand 540ms var(--md-sys-motion-emphasized-decelerate) forwards;
}

@keyframes md-ripple-expand {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* ==========================================================================
   Cadanz Studio Dark Info Dialog
   ========================================================================== */
.md-dialog {
  margin: auto;
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(470px, calc(100vw - 32px));
  width: 100%;
  color: var(--text-primary);
}

.md-dialog::backdrop {
  background: rgba(5, 5, 6, 0.78);
  backdrop-filter: blur(6px);
}

.md-dialog-surface {
  padding: 26px;
  border-radius: 4px;
  background: #17171A;
  border: 1px solid rgba(242, 242, 242, 0.16);
  border-top: 3px solid var(--accent-crimson);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.85);
}

.md-dialog-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.md-dialog-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  background: var(--accent-crimson-soft);
  border: 1px solid var(--accent-crimson-border);
  color: var(--accent-crimson-bright);
  flex-shrink: 0;
}

.md-dialog-icon svg {
  width: 21px;
  height: 21px;
}

.md-dialog-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.md-dialog-subtitle {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

.md-dialog-body {
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

.md-dialog-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.md-dialog-body code {
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(184, 29, 36, 0.16);
  border: 1px solid rgba(184, 29, 36, 0.35);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82em;
}

.md-hint-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.md-hint-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
}

.hint-dot {
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent-crimson-bright);
  flex-shrink: 0;
}

.md-dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.md-filled-tonal-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 22px;
  border: 1px solid var(--accent-crimson-border);
  border-radius: 3px;
  background: var(--accent-crimson);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.md-filled-tonal-btn:hover {
  background: var(--accent-crimson-bright);
}

/* ==========================================================================
   Small Screens (<= 768px):
   ONLY ONE full-screen Cadanz Studio forged-steel frame + floating back pill
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --frame-thickness: 20px;
    --mat-thickness: 5px;
    --corner-size: 46px;
    --crest-w: 112px;
    --crest-h: 24px;
  }

  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
  }

  .mobile-back-pill {
    position: fixed;
    top: 22px;
    left: 22px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 3px;
    background: rgba(13, 13, 15, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(184, 29, 36, 0.65);
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.65);
  }

  .mobile-back-pill svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent-crimson-bright);
  }

  .site-header,
  .gallery-footer,
  .salon-frame-2,
  .salon-frame-3,
  .salon-frame-4 {
    display: none;
  }

  .gallery-stage,
  .salon-wall {
    width: 100%;
    height: 100%;
    padding: 0;
  }

  .salon-frame-1 {
    position: relative;
    left: auto;
    top: auto;
    width: calc(100vw - 24px);
    height: calc(100dvh - 24px);
    --frame-thickness: 20px;
    --corner-size: 46px;
    --crest-w: 112px;
    --crest-h: 24px;
  }

  .frame-molding-outer {
    inset: 4px;
  }

  .frame-crimson-trim {
    inset: calc(var(--frame-thickness) - 5px);
  }

  .frame-nameplate {
    bottom: 2px;
    max-width: calc(100% - 26px);
    padding: 3px 12px;
    font-size: clamp(0.66rem, 2.7vw, 0.78rem);
  }

  .nameplate-desktop-title {
    display: none;
  }

  .nameplate-mobile-brand {
    display: inline-flex;
    align-items: center;
  }

  .edge-trigger {
    width: 24%;
    min-width: 56px;
  }

  .edge-chevron-pill {
    opacity: 0.56;
    width: 38px;
    height: 38px;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .painting-frame,
  .painting-slide,
  .edge-chevron-pill {
    transition-duration: 0.01ms !important;
  }

  .md-ripple-wave {
    display: none;
  }
}
