.public-experience {
  display: contents;
}
.language-switch {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-shrink: 0;
  padding: 4px;
  border: 1px solid currentColor;
  border-radius: 6px;
}
.portfolio .language-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 3px;
  padding: 8px 9px;
  min-height: 40px;
  background: transparent;
  color: inherit;
  font: 700 13px/1.2 var(--body-font);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.language-switch svg {
  width: 25px;
  height: 17px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #8886;
}
.portfolio .language-switch button[aria-pressed='true'] {
  background: var(--text);
  color: var(--bg);
}
.studio .language-switch button[aria-pressed='true'] {
  background: var(--studio-highlight);
  color: #191b20;
}
.portfolio .language-switch button:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.portfolio .language-switch button[aria-pressed='true']:hover {
  opacity: 0.9;
  background: var(--text);
  color: var(--bg);
}
.studio .language-switch button[aria-pressed='true']:hover {
  background: var(--studio-highlight);
  color: #191b20;
}
.portfolio-header nav a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 8px;
}
.portfolio-header nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.portfolio .project-image-link {
  display: block;
  cursor: pointer;
}
.portfolio .project-image-link:focus-visible {
  outline-offset: 8px;
}
.portfolio .section-head h2 a {
  text-decoration: none;
  transition: opacity 0.2s;
}
.portfolio .section-head h2 a:hover {
  opacity: 0.65;
}
.portfolio a,
.portfolio button {
  -webkit-tap-highlight-color: #98bac844;
}
.portfolio a:hover,
.portfolio button:not(:disabled):hover {
  cursor: pointer;
}
.portfolio .page-breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 35px;
  font-size: 14px;
  color: var(--muted);
  width: 100%;
  flex-wrap: wrap;
}
.page-breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.portfolio .page-breadcrumb + .portfolio-container > .portfolio-section:first-child {
  padding-top: 55px;
}
.portfolio .page-breadcrumb + .portfolio-container > .section-contact:first-child {
  margin-top: 35px;
}
.portfolio .page-breadcrumb + .portfolio-container h2 {
  font-size: clamp(38px, 7vw, 88px);
}
.portfolio .project-visual,
.portfolio .hero-portrait,
.portfolio .custom-content.with-image,
.portfolio .gallery-grid figure {
  overflow: hidden;
}
.portfolio img[data-image-key] {
  max-width: 100%;
  transform-origin: center;
  display: block;
}
.studio-scene:after {
  pointer-events: none;
}
.gif-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  isolation: isolate;
}
.gif-image-layer {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.gif-frame .gif-still {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.gif-paused .gif-still {
  display: block;
}
.gif-paused img {
  visibility: hidden;
}
.studio-scene > .gif-frame {
  position: absolute;
  inset: 0;
}
.studio-scene .gif-image-layer {
  height: 100%;
}
.portfolio .gif-toggle {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 5;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #ffffff99;
  border-radius: 4px;
  background: #161b23e8;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.studio .studio-scene {
  z-index: 0;
}
.studio .studio-hero-content {
  pointer-events: none;
  z-index: 1;
}
.studio .studio-hero-content a,
.studio .studio-hero-content button {
  pointer-events: auto;
}
.studio .studio-scene .gif-toggle {
  bottom: 18px;
  left: 18px;
  z-index: 5;
}
.studio .studio-hero-content {
  padding-bottom: 75px;
}
.studio .studio-hero .gif-toggle {
  isolation: isolate;
}
.portfolio [data-image-error='true'] {
  min-height: 100px;
  background: var(--line);
  color: var(--text);
}
.portfolio .project-cover {
  overflow: hidden;
}
.studio .portfolio-button,
.studio .studio-cta {
  transition:
    transform 0.2s,
    filter 0.2s;
}
.studio .portfolio-button:hover,
.studio .studio-cta:hover {
  filter: brightness(1.07);
}
.portfolio .project-actions a {
  min-height: 38px;
}
.portfolio .project-tags li {
  font-size: 13px;
}
.portfolio .team-note,
.portfolio .source-note {
  font-size: 14px !important;
}
.portfolio .section-intro {
  line-height: 1.65;
}
.translation-row {
  border: 1px solid #d9e1ee;
  border-radius: 6px;
  margin-top: 12px;
  padding: 16px;
}
.translation-row summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}
.translation-source {
  white-space: pre-line;
  margin: 14px 0 !important;
  padding: 15px;
  background: #f4f6fa;
  border-radius: 4px;
  font-size: 15px;
}
.translation-row > button {
  margin-top: 14px;
  text-decoration: underline;
}
/* Owner-only editing controls are rendered exclusively inside the admin iframe. */
.editing-images img[data-image-key] {
  cursor: grab !important;
  transition: none !important;
}
.editing-images .with-hover .project:hover .project-visual img {
  transform: none;
}
.image-editor-hint,
.image-editor-panel {
  position: fixed;
  z-index: 1000;
  background: #fff;
  color: #16253f;
  font-family: Arial, sans-serif;
  box-shadow: 0 6px 28px #0003;
  border: 1px solid #bac9dd;
  border-radius: 8px;
}
.image-editor-hint {
  bottom: 16px;
  left: 16px;
  right: 16px;
  padding: 14px;
  font-size: 14px;
  pointer-events: none;
}
.image-editor-panel {
  right: 12px;
  top: 12px;
  width: min(275px, calc(100vw - 24px));
  padding: 16px;
  font-size: 14px;
  max-height: 60vh;
  overflow: auto;
}
.image-editor-panel strong {
  font-size: 16px;
}
.image-editor-panel p {
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0 14px;
}
.image-editor-panel label {
  display: block;
  margin: 15px 0;
}
.image-editor-panel output {
  float: right;
  font-variant-numeric: tabular-nums;
}
.image-editor-panel [data-slot='slider'] {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  touch-action: none;
  user-select: none;
  margin-top: 12px;
  height: 18px;
}
.image-editor-panel [data-slot='slider-track'] {
  position: relative;
  flex: 1;
  height: 4px;
  background: #d8e1ef;
  border-radius: 2px;
  overflow: hidden;
}
.image-editor-panel [data-slot='slider-range'] {
  position: absolute;
  height: 100%;
  background: #1753b5;
}
.image-editor-panel [data-slot='slider-thumb'] {
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 2px solid #1753b5;
  border-radius: 50%;
}
.image-editor-panel > div:last-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
.image-editor-panel button {
  font:
    600 13px Arial,
    sans-serif;
  background: #eaf0fa;
  color: #153561;
  border: 0;
  border-radius: 4px;
  min-height: 36px;
  padding: 8px;
  cursor: pointer;
}
.image-editor-overlay {
  position: fixed;
  z-index: 900;
  border: 2px solid #3278f0;
  box-sizing: border-box;
  pointer-events: none;
}
.image-drag-area {
  position: absolute;
  inset: 0;
  background: transparent;
  border: 0;
  pointer-events: auto;
  cursor: move;
  touch-action: none;
}
.image-resize-handle {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  background: #1753b5;
  border-radius: 4px;
  pointer-events: auto;
  cursor: nwse-resize;
  touch-action: none;
  box-shadow: 0 1px 8px #0004;
}
.image-drag-area:focus-visible,
.image-resize-handle:focus-visible {
  outline: 3px solid #ffd24e;
  outline-offset: 5px;
}
@media (max-width: 760px) {
  .portfolio .header-inner {
    flex-wrap: wrap;
    gap: 14px;
    padding-block: 16px;
  }
  .portfolio .header-inner > .brand {
    order: 0;
  }
  .portfolio .header-inner > .language-switch {
    order: 1;
    margin-left: auto;
  }
  .portfolio .header-inner > nav {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .portfolio-header nav a {
    flex-shrink: 0;
    font-size: 14px;
  }
  .portfolio .language-switch button {
    padding: 7px;
    min-height: 38px;
  }
  .portfolio .language-switch svg {
    width: 22px;
    height: 15px;
  }
  .studio .studio-hero-top {
    gap: 10px;
  }
  .studio .studio-title {
    font-size: clamp(44px, 12.6vw, 74px);
  }
  .image-editor-panel {
    width: 210px;
    padding: 12px;
  }
  .image-editor-panel p {
    display: none;
  }
  .studio-hero-content .studio-scene-credit {
    align-self: flex-start;
  }
  .portfolio .page-breadcrumb + .portfolio-container > .portfolio-section:first-child {
    padding-top: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio * {
    scroll-behavior: auto !important;
  }
  .portfolio .project-visual,
  .studio .studio-cta {
    transition: none !important;
  }
}
.portfolio .page-breadcrumb + .portfolio-container .section-head h1 {
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.03;
  margin: 0;
  letter-spacing: -0.045em;
}
.portfolio.not-found .language-switch {
  width: max-content;
  margin-bottom: 45px;
}
/* Selection must not cover the hero's links with an invisible drag target. */
.image-drag-area {
  inset: auto;
  top: 8px;
  left: 8px;
  width: 92px;
  height: 40px;
  background: #1753b5;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 4px;
  font:
    600 14px Arial,
    sans-serif;
  box-shadow: 0 2px 10px #0003;
}
.portfolio button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.portfolio [id] {
  scroll-margin-top: 115px;
}
.contact-form-status {
  font-size: 14px;
  margin: 12px 0 !important;
  color: var(--muted);
}
.portfolio-gallery-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 24px;
  width: min(1100px, calc(100vw - 32px));
  max-height: 90dvh;
  overflow: auto;
}
.portfolio-gallery-dialog:not([open]) {
  display: none;
}
.portfolio-gallery-dialog::backdrop {
  background: #080e1bcd;
}
.portfolio-gallery-dialog[open] {
  display: grid;
  gap: 18px;
}
.portfolio .portfolio-gallery-dialog h2 {
  font-size: clamp(19px, 3vw, 26px);
  line-height: 1.3;
  margin: 0;
}
.portfolio-gallery-dialog .gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.portfolio-gallery-dialog > img {
  width: 100%;
  max-height: 62dvh;
  object-fit: contain;
}
.portfolio-gallery-dialog button {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 4px;
  min-height: 44px;
  padding: 8px 16px;
  font: inherit;
}
.portfolio-gallery-dialog p {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 620px) {
  .portfolio-gallery-dialog {
    padding: 16px;
  }
  .portfolio-gallery-dialog .gallery-heading {
    gap: 12px;
  }
}
.gif-load-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: 20px;
  text-align: center;
  font: 14px/1.5 var(--body-font, Arial);
  color: inherit;
  background: #151b2344;
}
.gif-frame[aria-busy='true'] {
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.video-fallback {
  font-size: 14px;
  margin-top: 12px !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}
