/* Shared finish: light edges and typography, not additional blur layers. */
body:not(.admin-body) {
  --control-radius: 14px;
  --control-ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}
#portfolio {
  scroll-margin-top: 110px;
}
#page-top {
  scroll-margin-top: 0;
}
@media (min-width: 761px) and (min-height: 601px) and (max-height: 900px) {
  .journal-horizontal-track .journal-wave-story.wave-top {
    top: clamp(105px, calc(873px - 100svh), 200px);
  }
  .journal-horizontal-track .journal-wave-story figure {
    height: clamp(150px, calc(100svh - 560px), 240px);
  }
}
@media (min-width: 761px) and (max-height: 600px) {
  .journal-mobile-journey {
    max-width: 600px;
    margin-inline: auto;
    padding-top: 60px;
  }
  .journal-mobile-memory {
    min-height: 0;
    padding-bottom: 25px;
  }
  .journal-mobile-memory figure {
    height: 400px;
    min-height: 240px;
  }
}
.contact-form .contact-project-types label {
  position: relative;
  min-height: 44px;
}
.contact-form .contact-project-types input[type='radio'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  z-index: 1;
  cursor: pointer;
}
.contact-form .contact-project-types label > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.contact-form .contact-project-types input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
body:not(.admin-body) :is(.topbar, .site-footer, .gate-card) {
  border-color: rgba(255, 255, 255, 0.88);
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.34),
    rgba(255, 255, 255, 0.04) 55%,
    rgba(255, 255, 255, 0.18)
  );
  box-shadow:
    inset 0 1px 0 #ffffffeb,
    inset 0 -1px 0 #ffffff54,
    0 8px 28px #25324c06,
    0 25px 65px #25324c08;
}
body:not(.admin-body)
  :is(
    .button,
    .intro-link,
    .lightbox-tools button,
    .lightbox-download,
    .menu-toggle,
    .nav-social-trigger
  ) {
  border-radius: var(--control-radius);
  min-height: 44px;
  transition:
    background-color 0.2s var(--control-ease),
    border-color 0.2s var(--control-ease),
    box-shadow 0.2s var(--control-ease),
    color 0.2s var(--control-ease),
    translate 0.2s var(--control-ease),
    scale 0.16s var(--control-ease);
  touch-action: manipulation;
}
body:not(.admin-body)
  :is(.button:not(.primary), .intro-link, .lightbox-tools button, .lightbox-download) {
  border: 1px solid #ffffffde;
  background-color: #ffffff8c;
  background-image: linear-gradient(145deg, #ffffff88, #ffffff0a);
  box-shadow:
    inset 0 1px 0 #fff,
    0 4px 14px #34466307;
}
body:not(.admin-body) .button.primary {
  box-shadow:
    inset 0 1px 0 #ffffff70,
    0 6px 18px #596b9220;
}
body:not(.admin-body) .lightbox .lightbox-download {
  color: #fff;
  background: linear-gradient(125deg, #657ce5, #9163c4);
  border-color: #ffffff80;
  box-shadow:
    inset 0 1px 0 #ffffff55,
    0 5px 16px #7188c82e;
}
body:not(.admin-body) .lightbox .lightbox-download:hover {
  color: #fff;
  background: linear-gradient(125deg, #586fd6, #8153b6);
}
body:not(.admin-body) :is(.button, .intro-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-weight: 550;
  line-height: 1.35;
  padding: 13px 21px;
}
body:not(.admin-body)
  :is(.button, .intro-link, .lightbox-tools button, .lightbox-download, .menu-toggle):active {
  translate: 0 1px;
  scale: 0.985;
}
body:not(.admin-body) :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent, #7488e9);
  outline-offset: 4px;
}
body:not(.admin-body) :is(.page-head, .live-exhibition-head, .about-copy, .contact-copy) h1 {
  text-wrap: balance;
  line-height: 1.06;
}
body:not(.admin-body) :is(.page-head-row > p, .live-description, .about-lead, .contact-lead) {
  line-height: 1.75;
  text-wrap: pretty;
  max-width: 48ch;
}
body:not(.admin-body) :is(.eyebrow, .section-label, .footer-title) {
  font-weight: 550;
  letter-spacing: 0.16em;
  line-height: 1.5;
}
body:not(.admin-body) :is(.gallery-frame figcaption, .frame-note p) {
  font-size: 12px;
  line-height: 1.65;
}
body:not(.admin-body) .gallery-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
  font-size: 11px;
  line-height: 1.6;
}
body:not(.admin-body) .gallery-page:not(.hero-cover) .gallery-story-head {
  width: min(1380px, calc(100% - 64px));
  padding: 142px 0 30px;
  overflow: visible;
}
body:not(.admin-body) .gallery-page:not(.hero-cover) .gallery-story-head h1 {
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  letter-spacing: -0.065em;
  margin: 8px 0 0;
  position: relative;
  z-index: 1;
}
.gallery-page:not(.hero-cover) .page-head-row {
  gap: 30px;
  align-items: center;
}
.gallery-page:not(.hero-cover) .page-head-row > div {
  position: relative;
  isolation: isolate;
}
.gallery-page:not(.hero-cover) .page-head-row > div:before,
.gallery-page:not(.hero-cover) .page-head-row > div:after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: -24px -45px -16px;
  border-radius: 42% 58% 63% 37% / 51% 32% 68% 49%;
  background:
    radial-gradient(ellipse at 38% 50%, #c5beff65, transparent 62%),
    radial-gradient(ellipse at 72% 44%, #b9e7f36b, transparent 60%),
    radial-gradient(ellipse at 52% 46%, #ffffffb0, transparent 68%);
  animation: albumLightBreathe 18s ease-in-out infinite;
  transform-origin: 42% 50%;
}
.gallery-page:not(.hero-cover) .page-head-row > div:after {
  inset: -12px -30px -18px;
  background:
    radial-gradient(ellipse at 60% 60%, #ded0f35c, transparent 65%),
    radial-gradient(ellipse at 42% 58%, #ffffffaa, transparent 70%);
  animation: albumLightBreathe 23s ease-in-out -9s infinite reverse;
}
.gallery-page:not(.hero-cover) .gallery-accent-line {
  display: none;
}
.gallery-page:not(.hero-cover) .gallery-facts {
  margin-top: 18px;
}
.gallery-page:not(.hero-cover) .gallery-story-head .eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  margin: 0;
  position: relative;
  z-index: 1;
}
.gallery-page:not(.hero-cover) .page-head-row > p {
  max-width: 32ch;
  margin: 0;
  font-size: 15px;
}
.gallery-page:not(.hero-cover) .gallery-story-head .page-head-row {
  animation: albumHeadEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-play-state: paused;
}
.gallery-page:not(.hero-cover) .gallery-story-head .gallery-facts {
  animation: albumHeadEnter 0.8s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-play-state: paused;
}
html.site-ready
  .gallery-page:not(.hero-cover)
  .gallery-story-head
  :is(.page-head-row, .gallery-facts) {
  animation-play-state: running;
}
@keyframes albumLightBreathe {
  0%,
  100% {
    transform: translate3d(-8px, 1px, 0) rotate(-5deg) scale(0.94, 1);
    opacity: 0.65;
  }
  50% {
    transform: translate3d(15px, -6px, 0) rotate(7deg) scale(1.1, 0.91);
    opacity: 1;
  }
}
@keyframes albumHeadEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.gallery-page:not(.hero-cover) .page-head-row > div:before,
.gallery-page:not(.hero-cover) .page-head-row > div:after {
  animation-play-state: paused;
  mask-image: radial-gradient(ellipse closest-side, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 35%, transparent 100%);
}
.gallery-page:not(.hero-cover) .light-is-visible .page-head-row > div:before,
.gallery-page:not(.hero-cover) .light-is-visible .page-head-row > div:after {
  animation-play-state: running;
}
body:has(.lightbox.open) .gallery-page:not(.hero-cover) .page-head-row > div:before,
body:has(.lightbox.open) .gallery-page:not(.hero-cover) .page-head-row > div:after {
  animation-play-state: paused;
}
body:not(.admin-body) .gallery-facts > .gallery-count {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid #ffffffce;
  border-radius: 14px;
  background: #ffffff85;
  box-shadow:
    inset 0 1px 0 #fff,
    0 4px 14px #34466304;
}
.gallery-count b {
  font-size: 19px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  color: inherit;
}
.gallery-count > span {
  letter-spacing: 0.13em;
  font-size: 9px;
}
.gallery-facts > .gallery-description {
  max-width: 65ch;
  letter-spacing: 0;
  text-transform: none;
}
.hero-cover .gallery-facts > .gallery-count {
  background: #ffffff20;
  border-color: #ffffff65;
  box-shadow: inset 0 1px 0 #ffffff40;
}
.lightbox .lightbox-counter {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.lightbox .lightbox-thumbs {
  padding-top: 10px;
  padding-bottom: 10px;
  scroll-padding-inline: 50%;
  align-items: center;
}
.lightbox .lightbox-thumbs button {
  border-radius: 10px;
  opacity: 0.62;
  transform: none;
  transition:
    opacity 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.lightbox .lightbox-thumbs button.active {
  opacity: 1;
  transform: none;
  animation: none;
  border-color: var(--accent, #7488e9);
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px var(--accent, #7488e9);
}
.lightbox .lightbox-thumbs button img {
  border-radius: 7px;
}
.lightbox .lightbox-thumbs {
  position: relative;
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.lightbox .lightbox-thumbs button {
  filter: none;
  transition:
    opacity 0.4s ease,
    border-color 0.4s ease;
  box-shadow: none;
}
.lightbox .lightbox-thumbs button.active {
  border-color: transparent;
  box-shadow: none;
}
.lightbox .thumb-selection {
  position: absolute;
  left: 0;
  pointer-events: none;
  z-index: 2;
  border: 1px solid var(--accent, #7488e9);
  border-radius: 10px;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px #8698eb65;
  opacity: 0;
  transition:
    transform 0.58s cubic-bezier(0.65, 0, 0.35, 1),
    width 0.3s,
    height 0.3s,
    opacity 0.2s;
}
.lightbox .lightbox-image-wrap {
  position: relative;
}
.lightbox .lightbox-image-wrap .photo-transition-ghost {
  position: absolute;
  inset: 0;
  margin: auto;
  pointer-events: none;
}
.lightbox .thumb-selection {
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.2s,
    height 0.2s,
    opacity 0.16s;
}
.lightbox .lightbox-shell {
  grid-template-rows: 66px minmax(0, 1fr) 126px;
}
.lightbox .lightbox-footer {
  grid-template-columns: 1fr;
  grid-template-rows: 34px 72px;
  gap: 0;
  padding: 8px 18px;
}
.lightbox .lightbox-footer > p {
  display: none;
}
.viewer-detail-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.lightbox .viewer-detail-controls button {
  position: static;
  width: auto;
  height: 30px;
  padding: 0 12px;
  border: 1px solid #dae1ed;
  border-radius: 9px;
  background: #ffffffa3;
  color: #43526a;
  font-size: 11px;
  white-space: nowrap;
}
.viewer-detail-controls button[aria-pressed='true'] {
  background: #eef1ff;
  color: #546bba;
  border-color: #cbd4f1;
}
.viewer-detail-controls label {
  display: flex;
  align-items: center;
  width: min(170px, 25vw);
}
.viewer-detail-controls input {
  width: 100%;
  height: 24px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  accent-color: var(--accent, #7488e9);
  cursor: pointer;
}
.viewer-detail-controls input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: #d7dfee;
}
.viewer-detail-controls input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--accent, #7488e9);
  box-shadow: 0 1px 5px #44577c28;
}
.viewer-detail-controls input::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: #d7dfee;
}
.viewer-detail-controls input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--accent, #7488e9);
  box-shadow: 0 1px 5px #44577c28;
}
.viewer-detail-controls input:focus-visible {
  outline: 2px solid var(--accent, #7488e9);
  outline-offset: 3px;
  border-radius: 8px;
}
.viewer-detail-controls output {
  width: 44px;
  font-size: 11px;
  color: #536379;
  font-variant-numeric: tabular-nums;
}
.viewer-detail-controls .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.lightbox .lightbox-image-wrap > img {
  width: auto;
  height: auto;
}
.lightbox .lightbox-image-wrap {
  translate: none;
  touch-action: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.lightbox .lightbox-image-wrap > img {
  max-height: 100%;
  max-width: 100%;
  transform-origin: center;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  -webkit-user-select: none;
}
.lightbox .lightbox-image-wrap.is-interacting > img,
.lightbox .lightbox-image-wrap.reduced-motion > img {
  transition: none;
}
.lightbox .lightbox-image-wrap.is-zoomed {
  cursor: grab;
}
.lightbox .lightbox-image-wrap.is-zoomed.is-interacting {
  cursor: grabbing;
}
@media (max-width: 760px) {
  .lightbox .lightbox-shell {
    grid-template-rows: calc(60px + env(safe-area-inset-top)) minmax(0, 1fr) calc(
        120px + env(safe-area-inset-bottom)
      );
  }
  .lightbox .lightbox-head {
    padding-top: env(safe-area-inset-top);
  }
  .lightbox .lightbox-footer {
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
    grid-template-rows: 38px 66px;
  }
  .lightbox .viewer-detail-controls button {
    height: 34px;
    min-width: 44px;
  }
  .viewer-detail-controls label {
    width: 90px;
  }
}
.live-exhibition-state > span:last-child {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.14em;
}
.live-exhibition-state [data-live-count] {
  font-size: 23px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
body:not(.admin-body) .footer-contact > p:not(.footer-title) {
  max-width: 34ch;
  line-height: 1.75;
}

/* Studio surfaces stay opaque and compact: a workspace, not a second portfolio. */
.admin-body {
  --studio-border: #e2e7ef;
  --studio-text: #26364a;
  --studio-secondary: #60738c;
}
.admin-body
  :is(
    .admin-panel,
    .settings-group,
    .studio-photo-inspector,
    .studio-messages > aside,
    .studio-messages > section,
    .gallery-editor-summary
  ) {
  border-color: var(--studio-border);
  box-shadow:
    0 2px 8px #26384a03,
    0 12px 28px #26384a04;
}
.admin-body .admin-head h1 {
  letter-spacing: -0.045em;
  line-height: 1.15;
  text-wrap: balance;
}
.admin-body .admin-head p:not(.eyebrow) {
  color: var(--studio-secondary);
  line-height: 1.65;
  max-width: 70ch;
}
.admin-body .settings-group summary strong {
  font-weight: 600;
  letter-spacing: -0.015em;
}
.admin-body .settings-group summary small {
  line-height: 1.55;
  color: var(--studio-secondary);
}
.admin-body
  :is(.button, .draft-tools button, .studio-message-actions button, .studio-workspace-tabs button) {
  border-radius: 11px;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    translate 0.16s ease;
  touch-action: manipulation;
}
.admin-body
  :is(.button, .draft-tools button, .studio-message-actions button):active:not(:disabled) {
  translate: 0 1px;
}
.admin-body :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid #7487dc;
  outline-offset: 3px;
}
.admin-body
  :is(
    .admin-nav-item.active,
    .studio-workspace-tabs button[aria-pressed='true'],
    .studio-album-tabs button[aria-pressed='true']
  ) {
  background: linear-gradient(110deg, #e9edff, #f0f3ff);
  color: #3f56ad;
  border-color: #cfd8f7;
  box-shadow: inset 0 1px 0 #ffffffb3;
}
.admin-body .admin-nav-item.active {
  font-weight: 650;
}
.admin-body .studio-nav-group:has(.admin-nav-item.active) > summary {
  color: #405ab0;
}
.admin-body
  :is(
    input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']),
    textarea,
    select
  ):focus {
  border-color: #94a5e8;
  box-shadow: 0 0 0 3px #8096eb13;
}
.admin-body .content-save-floating {
  border-color: #dce5e1;
  background: #fbfefdf5;
}
.admin-body .content-save-floating.dirty,
.admin-body form[data-changed='true'] .gallery-save-floating {
  border-color: #e5d4ae;
  background: #fffcf5f5;
}
.admin-body .content-save-floating.dirty > span,
.admin-body form[data-changed='true'] .gallery-save-floating > span {
  color: #856426;
}
.admin-body [data-state='saved'] {
  color: #327760;
  background: #edf8f2;
  border-radius: 9px;
  padding: 9px 12px;
}
.admin-body [data-state='error'],
.admin-body .form-status.error {
  color: #ad3b4d;
  background: #fff0f2;
  border-radius: 9px;
  padding: 9px 12px;
  line-height: 1.6;
}
.admin-body [data-state='busy'] {
  color: #5369ad;
  background: #f0f3fc;
  border-radius: 9px;
  padding: 9px 12px;
}
.admin-body [data-state='changed'] {
  color: #856426;
  background: #fff6e7;
  border-radius: 9px;
  padding: 9px 12px;
}
.admin-body button[aria-busy='true'] {
  opacity: 0.7;
  cursor: progress;
}
.admin-body button:disabled {
  cursor: not-allowed;
}
@media (hover: hover) {
  body:not(.admin-body)
    :is(.button:not(.primary), .intro-link, .lightbox-tools button, .lightbox-download):hover {
    background-color: #ffffffc2;
    border-color: #fff;
    box-shadow:
      inset 0 1px 0 #fff,
      0 7px 20px #3446630e;
    translate: 0 -1px;
  }
  .admin-body :is(.button:not(.primary), .draft-tools button):hover:not(:disabled) {
    border-color: #cbd5e8;
    background-color: #f4f7fd;
  }
}
@media (max-width: 760px) {
  body:not(.admin-body) .gallery-page:not(.hero-cover) .gallery-story-head {
    width: calc(100% - 36px);
    padding: 116px 0 24px;
  }
  .gallery-page:not(.hero-cover) .page-head-row {
    gap: 13px;
    align-items: flex-start;
    flex-direction: column;
  }
  .gallery-page:not(.hero-cover) .page-head-row > div:before,
  .gallery-page:not(.hero-cover) .page-head-row > div:after {
    inset: -12px -16px;
    animation-duration: 24s;
  }
  body:not(.admin-body) :is(.button, .intro-link) {
    padding: 12px 18px;
    min-height: 46px;
  }
  body:not(.admin-body) .page-head-row > p {
    font-size: 14px;
    line-height: 1.7;
  }
  body:not(.admin-body) .gallery-facts {
    margin-top: 19px;
    gap: 10px 14px;
  }
  .gallery-count b {
    font-size: 18px;
  }
  .lightbox .lightbox-thumbs button {
    border-radius: 9px;
  }
  .admin-body :is(.button, .draft-tools button, .studio-message-actions button) {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox .lightbox-image-wrap > img {
    transition: none;
  }
  .gallery-page:not(.hero-cover) .page-head-row > div:before,
  .gallery-page:not(.hero-cover) .page-head-row > div:after,
  .gallery-page:not(.hero-cover) .gallery-story-head .page-head-row,
  .gallery-page:not(.hero-cover) .gallery-story-head .gallery-facts {
    animation: none;
  }
  .lightbox .thumb-selection {
    transition: none;
  }
  body:not(.admin-body)
    :is(
      .button,
      .intro-link,
      .lightbox-tools button,
      .lightbox-download,
      .menu-toggle,
      .nav-social-trigger
    ),
  .lightbox .lightbox-thumbs button,
  .admin-body
    :is(
      .button,
      .draft-tools button,
      .studio-message-actions button,
      .studio-workspace-tabs button
    ) {
    transition: none;
    translate: none;
    scale: 1;
  }
}
