#licensing {
  --room-ivory: #fff3df;
  --room-muted: #dfc4b7;
  color: var(--room-ivory);
  padding-block: clamp(72px, 11svh, 155px);
  background: transparent;
}
/* Scroll position blends the two full-viewport washes on both sides of the room. */
body { isolation: isolate; }
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  z-index: -2;
  opacity: var(--room-clay, 0);
  background: linear-gradient(113deg, #b89a89, #c9af98 68%, #b79786);
}
body::after {
  z-index: -1;
  opacity: var(--room-wine, 0);
  background:
    radial-gradient(ellipse at 72% 57%, #76443d 0%, #5c3332 27%, transparent 63%),
    linear-gradient(112deg, #311e23 5%, #48252a 58%, #392125);
}
body:has(#licensing:target) { --room-clay: 1; --room-wine: 1; }
@media screen and (prefers-reduced-motion: no-preference) {
  body::before, body::after { transition: opacity 160ms linear; }
}
@media print {
  body::before, body::after { display: none; }
}
.rights-room {
  width: min(100% - 2 * var(--gutter), 79rem);
  display: grid;
  grid-template-columns: minmax(13rem, .67fr) minmax(0, 1.58fr);
  grid-template-rows: auto auto;
  gap: clamp(44px, 6.8svh, 90px) clamp(44px, 6vw, 105px);
  align-items: center;
  font-weight: 400;
}
.rights-heading { grid-area: 1 / 1 / 2 / -1; max-inline-size: calc(100% - 12rem); }
#licensing-title {
  margin: 0;
  color: var(--room-ivory);
  font-size: clamp(2.3rem, 3.9vw, 4.55rem);
  font-weight: 400;
  letter-spacing: .045em;
  line-height: 1.25;
}
html[lang=en] #licensing-title { font-family: var(--latin); font-size: clamp(3.1rem, 5.1vw, 5.75rem); letter-spacing: -.025em; }
.rights-intro, .rights-description p {
  margin: 0;
  color: var(--room-muted);
  font-size: clamp(.9rem, 1vw, 1.05rem);
  line-height: 1.85;
}
.rights-intro { margin-top: clamp(15px, 1.55vw, 25px); }
.rights-intro a { display: inline-block; margin-inline-start: .35em; color: var(--room-ivory); text-decoration: underline; text-underline-offset: .28em; }
.rights-inquire, .studio-expand, .studio-reset, .studio-view-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: 44px;
  font-weight: 400;
  color: var(--room-muted, #dfc4b7);
}
.rights-inquire {
  grid-area: 1 / 2;
  justify-self: end;
  align-self: start;
  margin-top: .45rem;
  font-size: .94rem;
  letter-spacing: .055em;
}
.rights-inquire svg, .studio-controls svg, .studio-view-bar svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rights-inquire:hover, .studio-controls button:hover, .studio-view-actions button:hover { color: #fff6e8; }
.rights-inquire:hover span, .studio-expand:hover span { text-decoration: underline; text-underline-offset: .4em; }
.rights-index { grid-area: 2 / 1; }
.rights-choices { border: 0; margin: 0; min-inline-size: 0; padding: 0; }
.studio-sr, .rights-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
  overflow: hidden;
}
.rights-options {
  --option-ink: #d1b6aa;
  --option-quiet: #c5aaa0;
  --option-bright: #fff6e7;
  display: grid;
  justify-items: start;
  position: relative;
}
.rights-options:focus-within { --option-ink: var(--option-quiet); }
.rights-options label {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  padding-inline: 1.2em .2em;
  min-height: clamp(48px, 6.4svh, 68px);
  color: var(--option-ink);
  font-size: clamp(1.17rem, 1.68vw, 1.72rem);
  letter-spacing: .065em;
  line-height: 1.35;
  cursor: pointer;
  transition: color 360ms ease, text-shadow 480ms ease-out;
}
.rights-options label::before {
  content: "";
  position: absolute;
  left: .07em;
  top: 50%;
  width: .28em;
  height: .28em;
  border-radius: 50%;
  background: #f2d39d;
  box-shadow: 0 0 .34em #edbe7e70;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 320ms ease;
}
.rights-options label::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: -.3em -1.25em -.3em -.85em;
  background: radial-gradient(ellipse at 49% 50%, #f9cb8a30 0%, #e2a96e15 43%, transparent 71%);
  opacity: 0;
  transition: opacity 480ms ease-out;
}
.rights-options input:checked + label {
  color: var(--option-bright);
  text-shadow: 0 0 .32em #ffdfa54d, 0 0 .9em #efbb8242;
}
.rights-options input:checked + label::before { opacity: 1; }
.rights-options input:checked + label::after { opacity: .86; }
.rights-options input + label:active::after { opacity: 1; transition-duration: 90ms; }
@media (hover: hover) and (pointer: fine) {
  .rights-options input:not(:checked) + label:hover { color: #eed6c6; }
}
@media (forced-colors: active) {
  .rights-options input:checked + label::before { forced-color-adjust: none; background: Highlight; }
}
.rights-options input:focus-visible + label { text-decoration: underline; text-underline-offset: .39em; }
#licensing button:focus-visible, #studio-view-dialog button:focus-visible { outline: 1px dotted #f1d8bb; outline-offset: 3px; }
.rights-description {
  margin: clamp(30px, 5svh, 58px) 0 0;
  max-width: 21em;
  min-height: 3.7em;
}
.rights-gallery { grid-area: 2 / 2; min-width: 0; }
.rights-example {
  width: min(100%, 55rem, 99svh);
  margin: 0 auto;
  font-weight: 400;
}
.rights-stage { position: relative; isolation: isolate; aspect-ratio: 3 / 2; overflow: hidden; }
.studio-still, .studio-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.studio-still { object-fit: contain; pointer-events: none; transform: scale(var(--detail-scale, 1)); }
.studio-canvas { opacity: 0; pointer-events: none; touch-action: pan-y pinch-zoom; cursor: grab; outline-offset: -4px; }
.rights-example.is-live .studio-canvas { opacity: 1; pointer-events: auto; }
.rights-example.is-live .studio-still { visibility: hidden; }
.studio-canvas:active { cursor: grabbing; }
.studio-canvas:focus-visible { outline: 1px dotted #e9c9ae; }
.rights-example figcaption {
  margin: clamp(12px, 2.7svh, 28px) 4.5% 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  color: var(--room-ivory, #fff3df);
  font: 400 .93rem/1.65 var(--serif);
}
.studio-work { display: flex; gap: .35rem 1rem; flex-wrap: wrap; align-items: baseline; }
.rights-ref { white-space: nowrap; font: .74rem/1.5 var(--mono); letter-spacing: .03em; color: var(--room-muted, #dfc4b7); }
.rights-credit { display: block; margin-top: .22em; color: var(--room-muted, #dfc4b7); font-size: .77rem; }
.studio-controls, .studio-tools, .studio-view-actions { display: inline-flex; align-items: center; gap: .5em; }
.studio-controls { flex: none; }
.studio-expand, .studio-reset { font-size: .84rem; }
.studio-reset { width: 44px; }
.studio-reset:disabled { display: none; }
#inquiry-dialog .inquiry-medium { color: var(--wine); font-size: 1rem; margin: 0 0 1rem; }
#studio-view-dialog {
  --room-ivory: #fff3df;
  --room-muted: #dfc4b7;
  width: min(94vw, 97rem);
  max-width: 100vw;
  max-height: 94dvh;
  padding: clamp(16px, 3.1vw, 50px);
  border: 0;
  color: var(--room-ivory);
  background: radial-gradient(ellipse at 56% 60%, #66413c 0%, #483031 48%, #2e2025 90%);
  box-shadow: 0 24px 100px #160c1080;
}
#studio-view-dialog::backdrop { background: #1c1216d9; }
.studio-view-bar { display: flex; justify-content: space-between; align-items: center; gap: 1.5em; }
.studio-view-bar h2 { margin: 0; font: 400 clamp(1.15rem, 1.7vw, 1.75rem)/1.4 var(--serif); letter-spacing: .05em; }
.studio-view-actions { gap: clamp(.8em, 1.8vw, 2em); }
.studio-view-actions .close { width: 44px; height: 44px; border: 0; }
.studio-view-actions .close:hover { background: transparent; }
.studio-zoom { font-size: .91rem; }
.studio-zoom[aria-pressed=true] { text-decoration: underline; text-underline-offset: .4em; color: #fff9ed; }
.studio-view-body .rights-example { width: min(100%, calc((90dvh - clamp(120px, 12vw, 200px)) * 1.5)); }
.studio-view-body .studio-expand { display: none; }
.studio-view-body figcaption { margin-top: .6rem; }
html[lang=en] .rights-options label { letter-spacing: .005em; }
@media (min-width: 781px) and (max-height: 780px) {
  #licensing { padding-block: clamp(48px, 8svh, 72px); }
  .rights-example { width: min(100%, 84svh); }
}
@media (max-width: 780px) {
  #licensing { padding-block: clamp(70px, 10svh, 105px); }
  .rights-room {
    width: min(100% - 2 * var(--gutter), 35rem);
    grid-template: "heading" auto "index" auto "artwork" auto "action" auto / minmax(0, 1fr);
    gap: clamp(32px, 5.2svh, 51px);
  }
  .rights-heading { grid-area: heading; max-inline-size: none; }
  #licensing-title { font-size: clamp(1.95rem, 6.9vw, 3.4rem); }
  html[lang=en] #licensing-title { font-size: clamp(2.6rem, 9vw, 3.8rem); }
  .rights-intro { margin-top: 1em; text-wrap: pretty; }
  .rights-index { grid-area: index; }
  .rights-options {
    --option-ink: #e2c8bc;
    --option-quiet: #dbc0b5;
    grid-template-columns: repeat(4, max-content);
    justify-content: space-between;
  }
  .rights-options label { padding: 0; min-height: 44px; font-size: clamp(.91rem, 3.5vw, 1.15rem); letter-spacing: .02em; }
  .rights-options label::before { left: 50%; top: auto; bottom: .08em; transform: translateX(-50%); }
  .rights-options label::after { inset: 0 -.65em; }
  .rights-description { margin-top: 1em; min-height: 1.85em; max-width: none; }
  .rights-gallery { grid-area: artwork; }
  .rights-example figcaption { margin: 1.1rem 0 0; }
  .studio-work { display: grid; gap: .1rem; }
  .studio-controls { gap: .125rem; }
  .studio-reset { width: 34px; }
  .rights-inquire { grid-area: action; justify-self: start; margin: 0; }
  html[lang=en] .rights-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .75rem; }
  html[lang=en] .rights-options label::before { left: 0; transform: none; }
  #studio-view-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    padding: max(18px, env(safe-area-inset-top)) var(--gutter) max(26px, env(safe-area-inset-bottom));
  }
  #studio-view-dialog[open] { display: flex; flex-direction: column; }
  .studio-view-body { flex: 1; display: grid; align-content: center; }
  .studio-view-body .rights-example { width: 100%; }
  .studio-view-body .rights-stage {
    width: calc(100% + 2 * var(--gutter) - 8px);
    margin-inline: calc(4px - var(--gutter));
    aspect-ratio: 1.35;
  }
  .studio-view-body .studio-still { object-fit: cover; }
  .studio-view-body figcaption { margin-top: 1.8rem; }
}
@media (max-width: 350px) {
  .rights-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rights-options label::before { left: 0; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #licensing *, #licensing *::before, #licensing *::after { animation: none !important; transition: none !important; }
}
