:root {
  color-scheme: dark;
  --ink: #090908;
  --ink-soft: #14120f;
  --paper: #f3ecdf;
  --muted: #b9afa1;
  --line: rgba(243, 236, 223, 0.18);
  --line-strong: rgba(243, 236, 223, 0.34);
  --gold: #c9aa67;
  --red: #9b4d3d;
  --green: #6f876f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --page-pad: 24px;
  --profile-bg: #090908;
  --name-color: #f3ecdf;
  --primary-color: #f3ecdf;
  --media-title-color: var(--gold);
  --name-surface: rgba(9, 9, 8, 0.44);
  --name-stroke: rgba(9, 9, 8, 0.42);
  --link-icon-color: #f3ecdf;
  --link-icon-border: rgba(243, 236, 223, 0.72);
  --link-icon-surface: rgba(9, 9, 8, 0.72);
  --editor-zone-outline: rgba(231, 139, 71, 0.52);
  --editor-zone-outline-public: rgba(243, 236, 223, 0.92);
  --slider-dock-size: 88px;
  --slider-dock-bottom: calc(max(18px, env(safe-area-inset-bottom)) + 112px);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--profile-bg);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.profile-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: var(--page-pad) 24px 116px;
  --cover-image: url("assets/hero-studio.png");
  --cover-height: calc(var(--page-pad) + min(16.5vw, 80px));
}

.profile-page:fullscreen,
.profile-page:-webkit-full-screen {
  width: 100%;
  min-height: 100%;
  background: var(--profile-bg);
}

body[data-static-profile] .profile-page {
  visibility: hidden;
}

body[data-static-profile].is-static-profile-ready .profile-page {
  visibility: visible;
}

.profile-cover-banner {
  overflow: hidden;
  isolation: isolate;
}

.profile-background-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  pointer-events: none;
}

.profile-cover-banner::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(9, 9, 8, 0.18), rgba(9, 9, 8, 0.68));
  content: "";
  pointer-events: none;
}

.profile-cover-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  height: var(--cover-height);
  content: "";
  background:
    linear-gradient(180deg, rgba(9, 9, 8, 0.18), rgba(9, 9, 8, 0.68)),
    var(--cover-image) center / cover no-repeat;
}

.profile-page.is-editor-mode .profile-cover-banner {
  cursor: pointer;
}

/* Let the empty part of the cover receive the editor click without disabling
   interactions on the profile blocks layered above it. */
.profile-page.is-editor-mode .profile-shell {
  pointer-events: none;
}

.profile-page.is-editor-mode .profile-shell > * {
  pointer-events: auto;
}

.profile-page.is-editor-mode .profile-cover-banner:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

.profile-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.profile-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(82px, 33%);
  align-items: end;
  gap: 12px 14px;
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 0;
}

.profile-photo,
.gallery-panel,
.contact-stack a {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(243, 236, 223, 0.14);
  border-radius: 8px;
  background: rgba(243, 236, 223, 0.045);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.profile-photo-stack {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 160px;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 1;
  isolation: isolate;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.12) brightness(0.9);
  transform: scale(1.04);
}

.profile-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.profile-photo::after {
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(9, 9, 8, 0.18));
  opacity: 1;
}

.profile-certification {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.profile-page.is-editor-mode .profile-certification.is-editor-pending {
  min-width: clamp(42px, 5.8vw, 54px);
  min-height: clamp(42px, 5.8vw, 54px);
  padding: 6px;
  border: 2px solid rgba(231, 139, 71, 0.46);
  border-radius: 10px;
  background: rgba(231, 139, 71, 0.08);
}

.profile-page.is-editor-mode .profile-certification.is-editor-pending .profile-certification-button {
  visibility: hidden;
  pointer-events: none;
}

.profile-certification-button {
  display: block;
  width: clamp(30px, 4.8vw, 46px);
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  transition: transform 160ms ease, filter 160ms ease;
}

.profile-certification-button.is-expanded {
  width: clamp(30px, 4.8vw, 46px);
  border-radius: 8px;
}

.profile-certification-button:hover,
.profile-certification-button:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
  outline: none;
}

.profile-certification-button img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.certification-lightview {
  position: fixed;
  z-index: 120;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 52px);
  min-height: 33vh;
  padding: clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--primary-color);
  background: color-mix(in srgb, var(--profile-bg) 94%, var(--primary-color));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
  animation: certification-drop 650ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.certification-lightview.is-closing {
  animation: certification-lift 650ms cubic-bezier(0.8, 0, 0.8, 0.2) both;
}

.certification-lightview-button {
  display: block;
  flex: 0 0 min(33.333%, 240px);
  width: min(33.333%, 240px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.certification-lightview-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 8px;
}

.certification-lightview-button img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.certification-lightview-copy { display: grid; gap: 8px; max-width: 760px; }
.certification-lightview-copy h2, .certification-lightview-copy p { margin: 0; }
.certification-lightview-copy h2 { color: var(--primary-color); font-size: clamp(1.1rem, 2.4vw, 1.8rem); }
.certification-lightview-copy > p:not(.certification-lightview-eyebrow) { max-width: 65ch; color: var(--paper); line-height: 1.55; }
.certification-lightview-eyebrow, .certification-lightview-copy span { color: var(--muted); font-size: .75rem; }

@keyframes certification-drop {
  from { transform: translateY(-102%); }
  to { transform: translateY(0); }
}

@keyframes certification-lift {
  from { transform: translateY(0); }
  to { transform: translateY(-102%); }
}

@media (max-width: 560px) {
  .certification-lightview { gap: 14px; padding: 18px; }
  .certification-lightview-copy > p:not(.certification-lightview-eyebrow) { font-size: .8rem; }
}

body.is-certification-lightview-open {
  overflow: hidden;
}

.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
}

.profile-title {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  padding: 0;
  text-align: right;
  align-self: start;
}

.profile-title h1 {
  display: block;
  width: fit-content;
  margin: 0 0 0 auto;
  max-width: 100%;
  border-radius: 6px;
  background: var(--name-surface);
  padding: 7px 13px 9px;
  color: var(--name-color);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
  text-shadow:
    -1px 0 0 var(--name-stroke),
    0 1px 0 var(--name-stroke),
    1px 0 0 var(--name-stroke),
    0 -1px 0 var(--name-stroke),
    0 7px 22px rgba(0, 0, 0, 0.26);
}

.profile-title p {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 6px 0 0 auto;
  border-radius: 6px;
  background: var(--name-surface);
  padding: 4px 9px 5px;
  color: var(--name-color);
  font-size: clamp(0.82rem, 2.05vw, 1.45rem);
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: anywhere;
  justify-content: flex-end;
  text-align: right;
  text-shadow:
    -1px 0 0 var(--name-stroke),
    0 1px 0 var(--name-stroke),
    1px 0 0 var(--name-stroke),
    0 -1px 0 var(--name-stroke),
    0 6px 18px rgba(0, 0, 0, 0.24);
}

.profile-title p a { text-decoration: underline; text-underline-offset: 3px; }
.profile-location-map { width: min(404px, calc((min(620px, 100vw - 28px) - 14px) * 2 / 3)); aspect-ratio: 4 / 3; margin: 0 auto; overflow: hidden; border: 1px solid color-mix(in srgb, var(--primary-color) 45%, transparent); border-radius: 8px; background: rgba(9, 9, 8, 0.6); }
.profile-location-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(0.25) contrast(1.05); }

.profile-title #profile-bio {
  display: block;
  width: min(100%, 560px);
  margin: 10px 0 0 auto;
  padding: 0;
  background: transparent;
  font-size: clamp(0.78rem, 1.45vw, 1rem);
  font-weight: 500;
  line-height: 1.4;
  text-align: right;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
  white-space: pre-line;
}

.profile-title #profile-bio::before {
  display: none;
}

.profile-page.is-editor-mode [data-editor-key="identity-location"]:empty::after {
  content: "Ajouter une localisation";
  opacity: 0.62;
  font-weight: 600;
}

.profile-page.is-editor-mode [data-editor-key="identity-bio"]:empty::after {
  content: "Ajouter une présentation";
  display: block;
  min-width: min(220px, 70vw);
  min-height: 1.4em;
  opacity: 0.62;
}

.profile-title p::before {
  content: "";
  flex: 0 0 auto;
  width: 0.88em;
  height: 0.88em;
  margin-right: 0.32em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 22s7-6.1 7-13a7 7 0 1 0-14 0c0 6.9 7 13 7 13Zm0-9.5A3.5 3.5 0 1 1 12 5a3.5 3.5 0 0 1 0 7.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 22s7-6.1 7-13a7 7 0 1 0-14 0c0 6.9 7 13 7 13Zm0-9.5A3.5 3.5 0 1 1 12 5a3.5 3.5 0 0 1 0 7.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.google-review-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(368px, calc(60% - 4px));
  margin: 0 auto;
  padding: 13px 16px;
  border: 1px solid rgba(201, 170, 103, 0.38);
  border-radius: 10px;
  background: rgba(9, 9, 8, 0.58);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.google-review-content { display: grid; gap: 4px; min-width: 0; }
.google-review-brand { color: var(--muted); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.google-review-value { display: flex; align-items: baseline; gap: 8px; }
.google-review-stars { color: var(--gold); font-size: 0.94rem; letter-spacing: 0.08em; white-space: nowrap; }
.google-review-rating { color: var(--paper); font-size: 1.05rem; }
.google-review-count { color: var(--muted); font-size: 0.78rem; }
.google-review-status { color: var(--muted); font-size: 0.75rem; }
.google-review-panel.is-pending { border-color: rgba(201, 170, 103, 0.62); }
.google-review-panel.is-pending .google-review-status { color: var(--gold); }
.google-review-panel.is-validated .google-review-status { color: var(--green); }
.google-review-link { flex: 0 0 auto; color: var(--gold); font-size: 0.76rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.google-review-overlay { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: rgba(9, 9, 8, 0.76); color: var(--gold); font-size: 0.82rem; font-weight: 850; letter-spacing: 0.03em; backdrop-filter: blur(3px); }
.google-review-inline-editor { display: grid; flex: 1 1 100%; gap: 7px; margin-top: 9px; }
.google-review-inline-editor[hidden] { display: none; }
.google-review-inline-editor label { color: var(--muted); font-size: 0.75rem; font-weight: 750; }
.google-review-inline-row { display: flex; gap: 8px; }
.google-review-inline-row input { min-width: 0; flex: 1; border: 1px solid rgba(201, 170, 103, 0.52); border-radius: 6px; padding: 9px 10px; background: rgba(9, 9, 8, 0.48); color: var(--paper); font: inherit; }
.google-review-inline-row button { border: 1px solid var(--gold); border-radius: 6px; padding: 8px 12px; background: rgba(201, 170, 103, 0.16); color: var(--paper); cursor: pointer; font: inherit; font-size: 0.74rem; font-weight: 800; }
.google-review-inline-message { margin: 0; color: var(--muted); font-size: 0.74rem; }
.google-review-inline-message.is-success { color: var(--green); }
.google-review-inline-message.is-error { color: #ef9a7f; }

.profile-like-panel { display: block; width: 100%; margin: 0; }
.profile-like-indicators { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; width: 100%; }
.profile-like-indicators:not(.has-tattooer-likes) { display: flex; justify-content: center; }
.profile-like-indicators.has-tattooer-likes { display: flex; justify-content: center; gap: clamp(6px, 2vw, 12px); }
.profile-like-button,
.profile-like-indicator { position: relative; display: inline-grid; place-items: center; width: min(46px, 100%); aspect-ratio: 1; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--gold); box-shadow: none; }
.profile-like-button { grid-column: 1; justify-self: center; cursor: pointer; transition: transform 160ms ease, filter 160ms ease, color 160ms ease; }
.profile-like-indicator { grid-column: 2; justify-self: center; }
.profile-like-button svg { width: 100%; height: 100%; fill: transparent; stroke: currentColor; stroke-width: 2.4; overflow: visible; }
.profile-heart-outline { fill: transparent; stroke: currentColor; stroke-width: 2.6; stroke-linejoin: round; }
.profile-heart-vessel { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.profile-heart-liquid { fill: currentColor; stroke: none; }
.profile-heart-fill-level { transform: translateY(76px); }
.profile-heart-wave { fill: currentColor; stroke: none; }
.profile-like-button.is-filling .profile-heart-fill-level { animation: profile-heart-fill-rise 3s cubic-bezier(.18,.72,.24,1) both; }
.profile-like-button.is-liked:not(.is-filling) .profile-heart-fill-level { transform: translateY(-14px); }
@keyframes profile-heart-fill-rise {
  from { transform: translateY(76px); }
  to { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .profile-like-button.is-filling .profile-heart-fill-level { animation-duration: 1ms; }
}
.profile-tattooer-like-icon { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; }
.profile-tattooer-like-heart { fill: transparent; }
.profile-like-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.profile-like-button:hover, .profile-like-button:focus-visible { transform: translateY(-2px) scale(1.04); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24)); outline: none; }
.profile-like-button.is-liked { color: #ef9a7f; }
.profile-like-button.is-liked svg { fill: transparent; }
.profile-like-count { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding-top: 2px; color: var(--paper); font-size: 0.76rem; font-weight: 850; line-height: 1; text-align: center; pointer-events: none; transition: opacity 320ms ease, visibility 0s linear; }
.profile-like-button:disabled { cursor: default; }

/* The backoffice editor is touch-first: editable zones stay visible without hover. */
.profile-page.is-editor-mode [data-editor-key] {
  outline: 2px dashed var(--editor-zone-outline);
  outline-offset: 7px;
  cursor: pointer;
  transition: opacity 180ms ease, filter 180ms ease;
}

.profile-page.is-editor-mode [data-editor-key].is-editor-focus-dimmed {
  opacity: 0.22;
  filter: grayscale(0.65) saturate(0.45);
}

.profile-page.is-editor-mode [data-editor-key].is-editor-zone-public {
  outline-color: var(--editor-zone-outline-public);
}

.profile-page.is-editor-mode [data-editor-key].is-editor-zone-hidden {
  opacity: 0.46;
  filter: grayscale(0.35);
}

.profile-page.is-editor-mode [data-editor-key].is-editor-zone-hidden [data-editor-key] {
  opacity: 0.58;
  filter: grayscale(0.45);
}

.profile-page.is-editor-mode [data-editor-key].is-editor-zone-hidden::before {
  content: "Masqué sur le profil public";
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  border: 1px solid var(--editor-zone-outline);
  border-radius: 999px;
  background: rgba(13, 16, 14, 0.86);
  color: var(--editor-zone-outline);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  pointer-events: none;
}

.profile-page.is-editor-mode [data-editor-key].is-editor-selected {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
  box-shadow: 0 0 0 5px rgba(201, 170, 103, 0.18);
}

.profile-page.is-editor-mode [data-editor-key="like"] > button {
  pointer-events: none;
}

.profile-page.is-editor-mode [contenteditable="true"] {
  outline: 2px solid var(--gold);
  outline-offset: 7px;
  cursor: text;
  caret-color: var(--gold);
}

.profile-page.is-editor-mode [contenteditable="true"]:empty::before {
  content: "Ajouter un texte…";
  opacity: 0.58;
}

.profile-page.is-editor-mode .social-icon:hover,
.profile-page.is-editor-mode .contact-stack a:hover,
.profile-page.is-editor-mode .media-panel:hover {
  transform: none;
  box-shadow: none;
}

.profile-page.is-editor-mode .social-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  width: 100%;
  touch-action: none;
}

.social-slot {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 67px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.profile-page.is-editor-mode .social-slot {
  width: 100%;
  background: rgba(231, 139, 71, 0.045);
  cursor: grab;
}

.profile-page.is-editor-mode .social-slot.is-editor-zone-public {
  outline-color: var(--editor-zone-outline);
}

.profile-page.is-editor-mode .social-slot.is-empty::after {
  position: absolute;
  right: 5px;
  bottom: 3px;
  content: "Zone libre";
  color: var(--editor-zone-outline);
  font-size: 0.52rem;
  font-weight: 800;
  pointer-events: none;
}

.profile-page:not(.is-editor-mode) .social-slot.is-empty {
  display: none;
}

.social-slot-placeholder {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--editor-zone-outline);
  border-radius: 7px;
  color: var(--editor-zone-outline);
  font-size: 1.15rem;
  line-height: 1;
}

.profile-page.is-editor-mode .social-slot.is-social-drag-over {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  background: rgba(201, 170, 103, 0.16);
  transform: scale(1.04);
}

.profile-page.is-editor-mode .social-icon.is-social-dragging {
  opacity: 0.45;
  cursor: grabbing;
  touch-action: none;
}

.profile-page.is-preview-interaction-locked .media-panel {
  cursor: default;
}

.main-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 2.35rem;
  width: min(620px, 100%);
  margin: 0 auto;
  padding-bottom: 1.5rem;
}

.main-bento.is-focus-mode {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.media-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  border-radius: 8px;
  overflow: visible;
  isolation: isolate;
  cursor: pointer;
  transition:
    left 520ms cubic-bezier(0.16, 1, 0.3, 1),
    top 520ms cubic-bezier(0.16, 1, 0.3, 1),
    right 520ms cubic-bezier(0.16, 1, 0.3, 1),
    bottom 520ms cubic-bezier(0.16, 1, 0.3, 1),
    width 520ms cubic-bezier(0.16, 1, 0.3, 1),
    height 520ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 260ms ease,
    border-color 180ms ease,
    box-shadow 260ms ease;
}

.media-panel::after {
  position: absolute;
  left: 50%;
  bottom: -1.35em;
  z-index: 4;
  transform: translateX(-50%);
  color: var(--media-title-color);
  font-size: clamp(0.9rem, 3vw, 1.18rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: none;
  mix-blend-mode: normal;
  content: none;
  pointer-events: none;
}

.media-panel-title {
  position: absolute;
  left: 50%;
  bottom: -1.35em;
  z-index: 4;
  transform: translateX(-50%);
  color: var(--media-title-color);
  font-size: clamp(0.9rem, 3vw, 1.18rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
  text-shadow: none;
  white-space: nowrap;
  pointer-events: none;
}

.profile-page.is-editor-mode .media-panel-title {
  bottom: -2.2em;
  padding: 0.3rem 0.75rem;
  pointer-events: auto;
  cursor: text;
}

.profile-page.is-editor-mode .media-panel-title.is-inline-editing {
  min-width: 3em;
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.profile-page.is-media-focus-mode .profile-header {
  position: fixed;
  z-index: 25;
  pointer-events: none;
}

.profile-page.is-media-focus-mode .profile-shell {
  z-index: 24;
}

.profile-page.is-media-focus-mode .profile-location-map,
.profile-page.is-media-focus-mode .link-contact-row {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}

.profile-page.is-media-focus-mode .link-contact-row {
  display: none;
}

.profile-page.is-media-focus-preparing .link-contact-row {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}

.profile-page.is-media-focus-mode .profile-photo-stack { pointer-events: auto; }

.profile-page.is-media-focus-mode .profile-photo {
  border-radius: 8px;
}

.profile-page.is-media-focus-mode .social-panel {
  pointer-events: auto;
}

.profile-page.is-media-focus-mode .media-panel::after {
  content: none;
}

.business-card-qr-button,
.business-card-qr-lightview {
  display: none;
}

.business-card-view {
  display: none;
}

.profile-page:fullscreen .business-card-qr-button,
.profile-page:-webkit-full-screen .business-card-qr-button {
  position: absolute;
  left: clamp(20px, 5vw, 44px);
  bottom: clamp(20px, 5vw, 44px);
  z-index: 12;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 9px;
  border: 1px solid rgba(243, 236, 223, 0.34);
  border-radius: 10px;
  background: rgba(9, 9, 8, 0.72);
  color: var(--gold);
  cursor: pointer;
}

.profile-page:fullscreen .business-card-qr-lightview,
.profile-page:-webkit-full-screen .business-card-qr-lightview {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(9, 9, 8, 0.74);
}

.profile-page:fullscreen .business-card-qr-button[hidden],
.profile-page:-webkit-full-screen .business-card-qr-button[hidden],
.profile-page:fullscreen .business-card-qr-lightview[hidden],
.profile-page:-webkit-full-screen .business-card-qr-lightview[hidden] {
  display: none !important;
}

.profile-page:fullscreen .business-card-qr-lightview button,
.profile-page:-webkit-full-screen .business-card-qr-lightview button {
  display: grid;
  place-items: center;
  width: min(58vw, 250px);
  aspect-ratio: 1;
  padding: 14px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.profile-page:fullscreen .business-card-qr-lightview img,
.profile-page:-webkit-full-screen .business-card-qr-lightview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-bento.is-focus-mode .media-panel {
  position: fixed;
  z-index: 21;
  width: var(--slider-dock-size);
  height: var(--slider-dock-size);
  aspect-ratio: auto;
  min-height: 0;
  pointer-events: auto;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
}

.main-bento.is-focus-mode .media-panel.is-active {
  left: 14px;
  right: 14px;
  top: var(--slider-active-top, 14px);
  bottom: calc(var(--slider-dock-bottom) + var(--slider-dock-size) + 14px);
  z-index: 20;
  width: auto;
  height: auto;
  transform: none;
  border-radius: 10px;
  cursor: grab;
  touch-action: none;
}

.main-bento.is-focus-mode .media-panel.is-active.is-grid-view {
  cursor: default;
  touch-action: pan-y;
}

.main-bento.is-focus-mode .media-panel.is-dock-item {
  left: var(--dock-left, 50%);
  top: var(--dock-top, auto);
  bottom: auto;
  transform: none;
  border-radius: 8px;
}

.main-bento.is-focus-mode .media-panel.is-dock-item::after {
  font-size: 0;
}

.main-bento.is-focus-mode .media-panel.is-dock-item .media-panel-title {
  font-size: 0;
}

.main-bento.is-focus-mode .media-panel.is-active::after {
  bottom: -0.12em;
  font-size: clamp(1.28rem, 6.4vw, 2.6rem);
}

.main-bento.is-focus-mode .media-panel.is-active .media-panel-title {
  bottom: -0.12em;
  font-size: clamp(0.9rem, 3vw, 1.18rem);
}

.main-bento.is-focus-mode .media-panel.is-active.is-grid-view::after {
  font-size: 0;
}

.main-bento.is-focus-mode .media-panel.is-active.is-grid-view .media-panel-title {
  font-size: 0;
}

.media-track,
.gallery-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-slide {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(8%);
  transition:
    opacity 680ms ease,
    transform 820ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-slide.is-current {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.gallery-slide.is-empty {
  display: grid;
  place-items: end start;
  background: rgba(243, 236, 223, 0.06);
}

.profile-page.is-editor-mode .gallery-slide.is-empty {
  place-items: center;
  border: 1px dashed rgba(243, 236, 223, 0.34);
  background: rgba(243, 236, 223, 0.04);
}

.profile-page.is-editor-mode .gallery-slide.is-empty figcaption {
  max-width: 80%;
  padding: 0.7rem 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.12) brightness(0.86);
}

@keyframes gallery-image-drift-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-1.25%, 0, 0); }
}

.gallery-slide.is-current img {
  width: 103%;
  max-width: none;
  animation: gallery-image-drift-left 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gallery-slide video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.12) brightness(0.86);
}

.gallery-slide::after {
  content: "";
}

.gallery-slide figcaption {
  display: none;
}
.media-panel.is-caption-hidden .gallery-slide figcaption { display: none !important; }

.video-playback-controls,
.image-playback-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 7;
  display: flex;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 360ms ease, transform 360ms ease;
}

.main-bento.is-focus-mode .media-panel.is-active:not(.is-grid-view) .video-playback-controls,
.main-bento.is-focus-mode .media-panel.is-active:not(.is-grid-view) .image-playback-controls {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
}

.main-bento.is-focus-mode .media-panel.is-active.is-controls-visible:not(.is-grid-view) .video-playback-controls,
.main-bento.is-focus-mode .media-panel.is-active.is-controls-visible:not(.is-grid-view) .image-playback-controls {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.video-playback-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid rgba(243, 236, 223, 0.72);
  border-radius: 50%;
  background: rgba(9, 9, 8, 0.72);
  color: var(--paper);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.video-playback-button:hover,
.video-playback-button:focus-visible,
.video-playback-button.is-active {
  border-color: var(--gold);
  color: var(--gold);
  outline: none;
}

.video-playback-button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.video-presentation-button {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
}

.video-presentation-button svg {
  flex: 0 0 auto;
}

.video-rotation-button[hidden] {
  display: none;
}

.video-presentation-overlay {
  position: absolute;
  overflow: hidden;
  top: max(14px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  z-index: 8;
  display: none;
  align-items: center;
  gap: 10px;
  max-width: min(64vw, 460px);
  padding: 7px 13px 7px 7px;
  border: 1px solid rgba(244, 239, 231, 0.46);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(244, 239, 231, 0.12), rgba(127, 176, 139, 0.1)),
    rgba(10, 14, 12, 0.52);
  color: var(--paper);
  box-shadow:
    0 0 0 1px rgba(255, 250, 244, 0.08) inset,
    0 18px 54px rgba(0, 0, 0, 0.22);
  isolation: isolate;
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.video-presentation-overlay::before,
.video-presentation-overlay::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.video-presentation-overlay::before {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 250, 244, 0.34), transparent),
    linear-gradient(135deg, rgba(244, 239, 231, 0.12), rgba(127, 176, 139, 0.1));
  transform: translateX(-125%) skewX(-18deg);
  animation: video-identity-scan 8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.video-presentation-overlay::after {
  inset: 1px;
  z-index: 0;
  border: 1px solid rgba(255, 250, 244, 0.2);
  border-radius: inherit;
}

.video-presentation-overlay > * {
  position: relative;
  z-index: 1;
}

.media-panel.is-presentation-mode .video-presentation-overlay {
  display: flex;
}

html.is-video-ui-hidden .media-panel.is-presentation-mode .video-presentation-overlay,
html.is-video-ui-hidden .media-panel.is-presentation-mode .video-playback-controls,
html.is-video-ui-hidden .media-panel.is-presentation-mode .gallery-slide.is-current figcaption {
  display: none !important;
}

.video-presentation-overlay img {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--link-icon-border);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 250, 244, 0.08) inset;
}

.video-presentation-overlay span {
  overflow: hidden;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-presentation-identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: stretch;
  gap: 3px;
  transform: translateY(-2px);
  font-size: clamp(0.82rem, 2.3vw, 1.08rem);
  font-weight: 800;
}

.video-presentation-identity-line {
  display: block;
  min-width: 0;
}

.video-presentation-name {
  display: block;
  overflow: visible;
  padding-right: 12px;
  text-overflow: clip;
  white-space: nowrap;
}

.video-presentation-domain {
  display: block;
  align-self: center;
  width: 100%;
  color: transparent;
  background: linear-gradient(
    90deg,
    rgba(243, 236, 223, 0.94) 0 var(--video-playlist-progress, 0%),
    rgba(243, 236, 223, 0.34) var(--video-playlist-progress, 0%) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  transition: background 380ms linear;
}

.video-presentation-progress {
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 1px;
  background: rgba(243, 236, 223, 0.28);
}

.video-presentation-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  will-change: transform;
  transform: scaleX(0);
  transform-origin: left center;
  background: rgba(243, 236, 223, 0.72);
  transition: transform 380ms linear;
}

@keyframes video-identity-scan {
  0%, 68% {
    opacity: 0;
    transform: translateX(-125%) skewX(-18deg);
  }

  76% {
    opacity: 0.8;
  }

  88%, 100% {
    opacity: 0;
    transform: translateX(125%) skewX(-18deg);
  }
}

.main-bento.is-focus-mode .media-panel.is-presentation-mode,
.media-panel.is-presentation-mode {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100vw;
  height: 100vh;
  max-width: none;
  border: 0;
  border-radius: 0;
  background: #000;
  cursor: default;
  touch-action: auto;
}

.media-panel.is-presentation-mode::after {
  display: none;
}

.media-panel.is-presentation-mode .media-track,
.media-panel.is-presentation-mode .gallery-slide,
.media-panel.is-presentation-mode .gallery-slide img,
.media-panel.is-presentation-mode .gallery-slide video {
  border-radius: 0;
}

.media-panel.is-presentation-mode .gallery-slide img,
.media-panel.is-presentation-mode .gallery-slide video {
  object-fit: contain;
  background: #000;
}

.media-panel.is-presentation-mode .gallery-slide.is-current img {
  width: 100%;
  max-width: 100%;
  animation: none;
  transform: none;
}

.media-panel.is-presentation-mode .video-playback-controls {
  flex-direction: column;
  gap: 8px;
  top: max(14px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
}

.main-bento.is-focus-mode .media-panel.is-presentation-mode.is-rotated-clockwise,
.media-panel.is-presentation-mode.is-rotated-clockwise {
  inset: auto;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: 100vh;
  height: 100vw;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
}

.media-panel:fullscreen,
.media-panel:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  background: #000;
}

.main-bento.is-focus-mode .media-panel.is-active:not(.is-grid-view) .gallery-slide.is-current figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: block;
  max-height: 38%;
  overflow: hidden;
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(0, 0, 0, 0.54);
  color: #fff;
  font-size: clamp(0.86rem, 2.7vw, 1rem);
  font-weight: 750;
  line-height: 1.24;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
}

.main-bento.is-focus-mode .media-panel.is-active .gallery-slide img,
.main-bento.is-focus-mode .media-panel.is-active .gallery-slide video {
  object-fit: contain;
  background: rgba(0, 0, 0, 0.92);
}

.main-bento.is-focus-mode .media-panel.is-active .gallery-slide img {
  width: 100%;
  max-width: 100%;
  animation: none;
  transform: none;
}

.main-bento.is-focus-mode .media-panel.is-active.is-grid-view .media-track {
  position: absolute;
  inset: 0;
  display: block;
  columns: 2;
  column-gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
}

.main-bento.is-focus-mode .media-panel.is-active.is-grid-view .gallery-slide {
  position: relative;
  inset: auto;
  display: block;
  overflow: hidden;
  break-inside: avoid;
  margin: 0 0 10px;
  height: auto;
  opacity: 1;
  transform: none;
  transition: none;
}

.main-bento.is-focus-mode .media-panel.is-active.is-grid-view .gallery-slide img,
.main-bento.is-focus-mode .media-panel.is-active.is-grid-view .gallery-slide video {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.main-bento.is-focus-mode .media-panel.is-active.is-grid-view .gallery-slide figcaption {
  display: block;
  padding: 7px 2px 1px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.social-panel {
  grid-column: 1 / -1;
  align-self: start;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  padding: 0;
}

.link-contact-board {
  display: contents;
}

.link-contact-row {
  width: min(620px, 100%);
  margin: 0 auto;
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 0;
  border-radius: 10px;
}

.profile-page.is-editor-mode .link-contact-row {
  margin-block: 4rem 1.25rem;
  padding-block: 20px;
}

.profile-page.is-editor-mode .link-contact-row .contact-stack {
  margin: 0;
}

.profile-brand-footer {
  width: min(620px, 100%);
  margin: clamp(48px, 10vh, 96px) auto 0;
  padding: 14px 0 18px;
  border-top: 1px solid color-mix(in srgb, var(--primary-color) 32%, transparent);
  text-align: center;
}

.profile-brand-footer a {
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.profile-brand-footer a:hover,
.profile-brand-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-contact-row .social-panel,
.link-contact-row .contact-stack {
  position: relative;
  inset: auto;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  width: 100%;
  margin: 0;
  transform: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.link-board-slot {
  position: relative;
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary-color) 28%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--primary-color) 5%, transparent);
}

.profile-page.is-editor-mode .link-board-slot {
  background: rgba(231, 139, 71, 0.045);
}

.profile-page.is-editor-mode .link-board-slot.contact-link { cursor: grab; touch-action: none; }

.profile-page.is-editor-mode .link-board-slot.is-empty {
  border-style: dashed;
  border-color: var(--editor-zone-outline);
  color: var(--primary-color);
  font-size: 1.4rem;
  cursor: grab;
}

.profile-page.is-editor-mode .link-board-slot.is-empty.is-editor-selected {
  border-color: var(--gold);
  background: rgba(201, 170, 103, 0.16);
  box-shadow: 0 0 0 5px rgba(201, 170, 103, 0.18), 0 0 20px rgba(201, 170, 103, 0.22);
}

.link-board-slot.is-link-drag-over {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  background: rgba(201, 170, 103, 0.16);
}

.link-board-slot.is-link-dragging { opacity: .52; cursor: grabbing; }

.link-contact-row.is-sticky-bottom {
  position: fixed;
  z-index: 20;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  left: max(14px, env(safe-area-inset-left));
  width: min(620px, calc(100% - 28px));
  margin: 0 auto;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 55%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--profile-bg) 88%, transparent);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .4);
  backdrop-filter: blur(14px);
}

.social-icon {
  position: relative;
  flex: 0 0 67px;
  width: 67px;
  max-width: 67px;
  aspect-ratio: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  color: #fff;
  box-shadow: none;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.link-contact-row .social-icon,
.link-contact-row .contact-link-inner {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  aspect-ratio: 1;
  display: grid;
  grid-row: auto;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.link-contact-row .contact-link-inner::after { display: none; }
.link-contact-row .contact-link-inner svg { width: 24px; height: 24px; color: var(--primary-color); fill: currentColor; }
.link-contact-row .contact-display-value { display: none; }

.social-icon:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.social-icon span {
  position: relative;
  z-index: 1;
  display: grid;
  width: clamp(41px, 72%, 58px);
  height: clamp(41px, 72%, 58px);
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--link-icon-border);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
}

.social-icon img,
.social-icon svg {
  width: 54%;
  height: 54%;
  display: block;
}

.social-icon img {
  object-fit: contain;
}

.social-icon svg {
  fill: currentColor;
  stroke: none;
  shape-rendering: geometricPrecision;
}

/* Keep external-link icons recognizable by using each target's brand palette. */
.social-icon.instagram span {
  border-color: transparent;
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 28%, #d62976 58%, #962fbf 80%, #4f5bd5 100%);
  color: #fff;
}

.social-icon.encre span {
  border-color: rgba(38, 184, 194, 0.56);
  color: #26b8c2;
}

.social-icon.facebook span {
  border-color: rgba(24, 119, 242, 0.64);
  color: #1877f2;
}

.social-icon.tiktok span {
  border-color: #fe2c55;
  background: #050505;
  color: #fff;
}

.social-icon.tiktok svg {
  filter: none;
}

.social-icon.linktree span {
  border-color: rgba(67, 230, 96, 0.62);
  color: #43e660;
}

.social-icon.youtube span {
  border-color: rgba(255, 0, 0, 0.62);
  color: #ff0000;
}

.profile-page .social-icon span {
  border-color: var(--link-icon-border);
  background: var(--link-icon-surface);
  color: var(--link-icon-color);
}

.contact-stack {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 20;
  width: min(375px, calc(100% - 28px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  transform: translateX(-50%);
}

.profile-page.is-editor-mode .contact-empty-slot {
  display: grid;
  grid-row: 1;
  place-items: center;
  aspect-ratio: 1;
  border: 1px dashed var(--editor-zone-outline);
  border-radius: 8px;
  color: var(--primary-color);
  font-size: 1.4rem;
}

.contact-stack a {
  min-height: 0;
  aspect-ratio: 1 / 1;
  display: grid;
  grid-row: 1;
  place-items: center;
  padding: 0;
  transition: border-color 180ms ease, transform 180ms ease;
}

.profile-page.is-editor-mode .contact-stack .contact-link {
  cursor: grab;
  touch-action: none;
}

.profile-page.is-editor-mode .contact-stack.is-dragging .contact-link {
  user-select: none;
}

.profile-page.is-editor-mode .contact-stack .contact-link.is-contact-dragging {
  cursor: grabbing;
  opacity: 0.58;
  transform: scale(0.97);
}

.contact-inline-value {
  display: none;
  width: 100%;
  position: relative;
  z-index: 3;
  max-width: 100%;
  padding: 0 7px;
  border: 0;
  background: transparent;
  overflow: hidden;
  color: var(--paper);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-display-value {
  display: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-page.is-editor-mode .contact-link.is-empty {
  border-style: dashed;
  border-color: var(--editor-zone-outline);
}

.profile-page.is-editor-mode .contact-link.is-empty .contact-inline-value,
.profile-page.is-editor-mode .contact-inline-value.is-inline-editing {
  display: block;
}

.profile-page.is-editor-mode .contact-inline-value::placeholder {
  opacity: 0.7;
}

.profile-page.is-editor-mode .contact-inline-value.is-inline-editing {
  min-width: 80%;
  border-bottom: 1px solid var(--primary-color);
  outline: none;
  color: var(--primary-color);
  cursor: text;
}

.profile-page.is-editor-mode .contact-inline-value:read-only {
  pointer-events: none;
}

.contact-stack a::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(105deg, transparent, rgba(243, 236, 223, 0.12), transparent);
  transform: translateX(-120%) skewX(-18deg);
  transition: transform 520ms ease;
}

.contact-stack a:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.contact-stack a:hover::after {
  transform: translateX(120%) skewX(-18deg);
}

.contact-stack svg {
  position: relative;
  z-index: 3;
  width: 30px;
  height: 30px;
  fill: currentColor;
  color: var(--primary-color);
  filter: drop-shadow(0 0 12px rgba(201, 170, 103, 0.22));
}

.reveal-card {
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  transition:
    opacity 720ms ease,
    transform 820ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact-stack.reveal-card {
  transform: translateX(-50%) translateY(18px) scale(0.99);
}

.contact-stack.reveal-card.is-visible {
  transform: translateX(-50%) translateY(0) scale(1);
}

.profile-page .link-contact-row .contact-stack.reveal-card {
  transform: none;
}

@keyframes gold-border-glint {
  from {
    background-position: 0 0, 0 0, 0% 50%;
  }

  to {
    background-position: 0 0, 0 0, 100% 50%;
  }
}

@keyframes business-card-photo-pop {
  0% {
    transform: scale(1);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), 0 0 0 0 rgba(201, 170, 103, 0);
  }

  42% {
    transform: scale(1.045);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.4), 0 0 0 12px rgba(201, 170, 103, 0.16);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), 0 0 0 24px rgba(201, 170, 103, 0);
  }
}

@keyframes business-card-content-in {
  from {
    opacity: 0.3;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-page.is-business-card-animating .profile-photo {
  animation: business-card-photo-pop 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-page.is-business-card-animating .profile-title,
.profile-page.is-business-card-animating .social-panel,
.profile-page.is-business-card-animating .contact-stack {
  animation: business-card-content-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.profile-page.is-business-card-animating .social-panel {
  animation-delay: 90ms;
}

.profile-page.is-business-card-animating .contact-stack {
  animation-delay: 150ms;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 760px) {
  :root {
    --page-pad: 14px;
  }

  .profile-page {
    padding: var(--page-pad) 14px 108px;
  }

  .profile-header {
    grid-template-columns: minmax(0, 1fr) minmax(76px, 33%);
    width: 100%;
    padding: 10px;
  }

  .main-bento {
    padding: 0 10px 1.75rem;
  }

  .profile-photo-stack {
    width: 100%;
    max-width: 130px;
    min-width: 0;
  }

  .profile-title {
    min-width: 0;
  }

  .media-panel {
    width: 100%;
    min-height: 0;
  }
}

@media (max-width: 430px) {
  .profile-title {
    padding: 0;
  }

  .profile-title h1 {
    font-size: clamp(0.78rem, 4.2vw, 1.08rem);
    padding: 6px 10px 8px;
  }

  .profile-title p {
    margin-top: 5px;
    font-size: clamp(0.66rem, 3.25vw, 0.88rem);
    padding: 4px 8px 5px;
  }

  .social-icon {
    flex-basis: 62px;
    width: 62px;
    max-width: 62px;
    min-height: 0;
  }
}

/* Compact business-card presentation for phones held in landscape. */
@media (orientation: landscape) and (max-width: 900px) and (max-height: 600px) {
  :root {
    --page-pad: 12px;
    --slider-dock-bottom: 12px;
  }

  body {
    min-height: 100svh;
    overflow: hidden;
  }

  .profile-page {
    height: 100svh;
    max-height: 100svh;
    display: grid;
    place-items: center;
    padding: 12px;
    overflow: hidden;
  }

  .profile-cover-banner {
    inset: 0;
    height: auto;
    background:
      linear-gradient(135deg, rgba(9, 9, 8, 0.38), rgba(9, 9, 8, 0.78)),
      var(--cover-image) center / cover no-repeat;
  }

  .profile-shell {
    position: relative;
    width: min(860px, 100%);
    height: min(420px, calc(100svh - 24px));
    min-height: 0;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(243, 236, 223, 0.28);
    border-radius: 18px;
    background:
      linear-gradient(125deg, rgba(9, 9, 8, 0.94), rgba(20, 18, 15, 0.78)),
      var(--cover-image) center / cover;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(14px);
  }

  .business-card-qr-button {
    position: absolute;
    left: clamp(20px, 5vw, 44px);
    bottom: clamp(20px, 5vw, 44px);
    z-index: 12;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 9px;
    border: 1px solid rgba(243, 236, 223, 0.34);
    border-radius: 10px;
    background: rgba(9, 9, 8, 0.72);
    color: var(--gold);
    cursor: pointer;
  }

  .business-card-qr-button svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
  }

  .business-card-qr-lightview {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    background: rgba(9, 9, 8, 0.74);
  }

  .business-card-qr-lightview[hidden],
  .business-card-qr-button[hidden] {
    display: none !important;
  }

  .business-card-qr-lightview button {
    display: grid;
    place-items: center;
    width: min(58vw, 250px);
    aspect-ratio: 1;
    padding: 14px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
  }

  .business-card-qr-lightview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .profile-header {
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(124px, 31%);
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: 12px 24px;
    padding: clamp(20px, 5vw, 44px);
  }

  .profile-photo-stack {
    grid-row: 1;
    align-self: end;
    width: min(27vw, 220px);
    max-width: none;
  }

  .profile-photo {
    width: 100%;
    border-color: rgba(243, 236, 223, 0.34);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  }

  .profile-title {
    align-self: start;
    padding: 0;
    text-align: left;
  }

  .profile-title p,
  .profile-title #profile-bio,
  .profile-location-map,
  .profile-certification,
  .social-panel,
  .profile-like-panel,
  .google-review-panel {
    display: none !important;
  }

  .profile-name-row {
    justify-content: flex-start;
  }

  .profile-title h1 {
    margin-right: 0;
    padding: 0;
    background: transparent;
    font-size: clamp(1.45rem, 5vw, 2.7rem);
    letter-spacing: -0.025em;
  }

  .profile-title p {
    margin-top: 9px;
    padding: 0;
    background: transparent;
    font-size: clamp(0.85rem, 2.2vw, 1.15rem);
  }

  .social-panel {
    grid-column: 1;
    align-self: start;
    gap: 9px;
    margin-bottom: 64px;
    padding: 0;
  }

  .social-icon {
    flex-basis: 53px;
    width: 53px;
    max-width: 53px;
    border: 1px solid rgba(243, 236, 223, 0.2);
    border-radius: 9px;
  }

  .main-bento {
    display: none;
  }

  .profile-page.is-media-focus-mode .main-bento,
  .main-bento.is-focus-mode {
    display: none !important;
  }

  .google-review-panel {
    position: absolute;
    left: clamp(20px, 5vw, 44px);
    right: auto;
    bottom: clamp(20px, 5vw, 44px);
    width: min(368px, calc(60% - 4px));
    margin: 0;
    padding: 9px 12px;
  }

  .contact-stack {
    position: absolute;
    left: auto;
    right: clamp(20px, 5vw, 44px);
    bottom: clamp(18px, 4vw, 36px);
    width: min(300px, 42%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    transform: none;
  }

  .contact-stack a {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 6px 0;
    border-width: 0 0 1px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .contact-stack a:last-child {
    border-bottom: 0;
  }

  .contact-stack a::after {
    display: none;
  }

  .contact-stack svg {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    color: var(--gold);
  }

  .contact-display-value {
    display: block;
    color: var(--paper);
    font-size: clamp(0.72rem, 1.8vw, 0.92rem);
    font-weight: 700;
    line-height: 1.2;
  }

  .contact-stack.reveal-card {
    transform: translateY(12px) scale(0.99);
  }

  .contact-stack.reveal-card.is-visible {
    transform: translateY(0) scale(1);
  }
}

/* In the visual editor, keep the communication block in the page flow so it
   appears immediately after the galleries instead of covering their footer. */
.profile-page.is-editor-mode {
  padding-bottom: var(--page-pad);
}

.profile-page.is-editor-mode .contact-stack {
  position: relative;
  inset: auto;
  width: min(620px, 100%);
  margin: 2.25rem auto 0;
  transform: none;
}

.profile-page.is-editor-mode .main-bento {
  row-gap: 3rem;
}

@media (orientation: portrait) and (max-width: 760px) {
  .profile-page.is-editor-mode .main-bento {
    row-gap: 4rem;
  }
}

/* The dedicated `/v` route is a video player, not the regular media-focus
   layout. Keep only the selected video and its controls visible when native
   fullscreen is unavailable (notably on mobile Safari). */
html.is-video-presentation-active,
html.is-video-presentation-active body {
  overflow: hidden;
  background: #000;
}

html.is-video-presentation-active .profile-page {
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  background: #000;
}

html.is-video-presentation-active .profile-page > .profile-cover-banner,
html.is-video-presentation-active .profile-page .profile-header,
html.is-video-presentation-active .profile-page .google-review-panel,
html.is-video-presentation-active .profile-page .profile-location-map,
html.is-video-presentation-active .profile-page .link-contact-row,
html.is-video-presentation-active .profile-page .contact-stack,
html.is-video-presentation-active .profile-page .business-card-qr-button,
html.is-video-presentation-active .profile-page .business-card-qr-lightview {
  display: none !important;
}

html.is-video-presentation-active .profile-page .profile-shell {
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
}

html.is-video-presentation-active .profile-page .main-bento {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: block !important;
  width: auto;
  height: 100%;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

html.is-video-presentation-active .profile-page .main-bento .media-panel:not(.is-presentation-mode) {
  display: none !important;
}

html.is-video-presentation-active .profile-page .main-bento .media-panel.is-presentation-mode {
  display: block !important;
  pointer-events: auto;
}

html.is-video-presentation-active .media-panel.is-presentation-mode .video-presentation-overlay img {
  display: block;
}

html.is-video-presentation-active .media-panel.is-presentation-mode .video-presentation-overlay {
  left: max(16px, env(safe-area-inset-left));
  right: auto;
  padding: 7px 7px 7px 13px;
}

/* Video presentation keeps the complete imported caption. Long captions stay
   readable in a scrollable panel instead of being replaced by an ellipsis. */
html.is-video-presentation-active .profile-page .main-bento .media-panel.is-presentation-mode .gallery-slide.is-current figcaption {
  height: calc(1.24em * 4 + 18px);
  max-height: calc(1.24em * 4 + 18px);
  overflow: hidden;
  white-space: pre-line;
  text-align: center;
  pointer-events: auto;
}

html.is-video-presentation-active .profile-page .main-bento .media-panel.is-presentation-mode .gallery-slide.is-current figcaption .caption-scroll-content {
  display: block;
}

html.is-video-presentation-active .profile-page .main-bento .media-panel.is-presentation-mode .gallery-slide.is-current figcaption.is-caption-scrollable .caption-scroll-content {
  animation: video-caption-scroll var(--caption-scroll-duration, 30s) linear infinite;
}

@keyframes video-caption-scroll {
  0%, 8% {
    transform: translateY(var(--caption-scroll-start));
  }

  92%, 100% {
    transform: translateY(var(--caption-scroll-end));
  }
}

html.is-video-presentation-active .profile-page .main-bento .media-panel.is-presentation-mode .media-panel-title {
  display: none !important;
}

/* The dedicated `/c` route exposes the business-card view directly, without
   requiring a mobile landscape viewport or a fullscreen gesture. */
html.is-business-card-presentation,
html.is-business-card-presentation body {
  min-height: 100svh;
  overflow: hidden;
  background: #080807;
}

html.is-business-card-presentation .profile-page {
  height: 100svh;
  max-height: 100svh;
  display: grid;
  place-items: center;
  padding: 12px;
  overflow: hidden;
}

html.is-business-card-presentation .profile-cover-banner {
  inset: 0;
  height: auto;
  background:
    linear-gradient(135deg, rgba(9, 9, 8, 0.38), rgba(9, 9, 8, 0.78)),
    var(--cover-image) center / cover no-repeat;
}

html.is-business-card-presentation .profile-shell {
  position: relative;
  width: min(860px, 100%);
  height: auto;
  max-height: calc(100svh - 48px);
  aspect-ratio: 16 / 9;
  min-height: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(201, 170, 103, 0.48);
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(9, 9, 8, 0.98), rgba(28, 24, 18, 0.9)),
    var(--cover-image) center / cover;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.6), 0 0 0 8px rgba(201, 170, 103, 0.05);
  backdrop-filter: blur(14px);
}

html.is-business-card-presentation .profile-shell::before,
html.is-business-card-presentation .profile-shell::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

html.is-business-card-presentation .profile-shell::before {
  inset: 16px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 38%, transparent);
  border-radius: 8px;
}

html.is-business-card-presentation .profile-shell::after {
  right: -12%;
  bottom: -44%;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(201, 170, 103, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(201, 170, 103, 0.035), 0 0 0 38px rgba(201, 170, 103, 0.025);
}

html.is-business-card-presentation .business-card-view {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 6vw, 58px);
  color: var(--paper);
}

html.is-business-card-presentation .business-card-view-artist {
  display: flex;
  align-items: center;
  gap: clamp(20px, 5vw, 46px);
  min-height: 0;
}

html.is-business-card-presentation .business-card-view-photo-frame {
  flex: 0 0 clamp(118px, 24vw, 214px);
  aspect-ratio: 1;
  padding: 7px;
  border: 1px solid rgba(201, 170, 103, 0.72);
  border-radius: 14px;
  background: rgba(9, 9, 8, 0.58);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), 0 0 0 7px rgba(201, 170, 103, 0.06);
}

html.is-business-card-presentation .business-card-view-photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

html.is-business-card-presentation .business-card-view-identity {
  min-width: 0;
}

html.is-business-card-presentation .business-card-view-brand {
  display: grid;
  gap: 8px;
  justify-items: end;
  max-width: min(340px, 54%);
  margin-left: auto;
  text-align: right;
}

html.is-business-card-presentation .business-card-view-logo {
  margin: 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

html.is-business-card-presentation .business-card-view-slogan {
  margin: 0;
  color: rgba(243, 236, 223, 0.78);
  font-size: clamp(0.5rem, 1.15vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

html.is-business-card-presentation .business-card-view-rule {
  width: 100%;
  height: 1px;
  margin: clamp(22px, 4vw, 42px) 0 auto;
  background: linear-gradient(90deg, var(--gold), rgba(201, 170, 103, 0));
}

html.is-business-card-presentation .business-card-view-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

html.is-business-card-presentation .business-card-view-contact-details {
  display: grid;
  gap: 9px;
  max-width: min(52%, 360px);
  margin-right: auto;
}

html.is-business-card-presentation .business-card-view-contact-link {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--paper);
  text-align: left;
}

html.is-business-card-presentation .business-card-view-contact-label {
  color: var(--gold);
  font-size: clamp(0.5rem, 1.1vw, 0.64rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

html.is-business-card-presentation .business-card-view-contact-value {
  overflow-wrap: anywhere;
  color: rgba(243, 236, 223, 0.88);
  font-size: clamp(0.68rem, 1.55vw, 0.88rem);
  font-weight: 650;
  line-height: 1.2;
}

html.is-business-card-presentation .business-card-view-name {
  max-width: min(100%, 32rem);
  margin: 0;
  overflow: visible;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 3.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

html.is-business-card-presentation .business-card-view-username {
  margin: 10px 0 0;
  color: var(--gold);
  font-size: clamp(0.85rem, 2vw, 1.12rem);
  font-weight: 750;
  letter-spacing: 0.08em;
}

html.is-business-card-presentation .business-card-view-qr-wrap {
  position: absolute;
  top: clamp(28px, 6vw, 58px);
  right: clamp(28px, 6vw, 58px);
  z-index: 2;
  width: clamp(92px, 17vw, 142px);
}

html.is-business-card-presentation .business-card-view-qr-frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  padding: clamp(7px, 1.2vw, 11px);
  border: 1px solid rgba(243, 236, 223, 0.5);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

html.is-business-card-presentation .business-card-view-qr {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html.is-business-card-presentation .profile-header,
html.is-business-card-presentation .google-review-panel,
html.is-business-card-presentation .main-bento,
html.is-business-card-presentation .profile-location-map,
html.is-business-card-presentation .link-contact-row,
html.is-business-card-presentation .contact-stack,
html.is-business-card-presentation .business-card-qr-button,
html.is-business-card-presentation .business-card-qr-lightview {
  display: none !important;
}

.profile-page.has-brand-footer {
  padding-bottom: 24px;
}

.profile-page.is-video-onboarding-active .profile-cover-banner,
.profile-page.is-video-onboarding-active .business-card-view,
.profile-page.is-video-onboarding-active .profile-header,
.profile-page.is-video-onboarding-active .google-review-panel,
.profile-page.is-video-onboarding-active .main-bento,
.profile-page.is-video-onboarding-active .profile-location-map,
.profile-page.is-video-onboarding-active .contact-stack,
.profile-page.is-video-onboarding-active .business-card-qr-button,
.profile-page.is-video-onboarding-active .business-card-qr-lightview {
  display: none !important;
}

.profile-page.is-video-onboarding-active {
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 30%, rgba(127, 176, 139, 0.2), transparent 40%),
    linear-gradient(180deg, rgba(16, 20, 18, 0.7), rgba(16, 20, 18, 0.96)),
    url("assets/hero-studio.png") center / cover fixed,
    #101412;
  color: #f4efe7;
}

.profile-page.is-video-onboarding-active::after {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, 0.014) 6px);
  opacity: 0.34;
}

.video-onboarding-panel {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  width: min(1240px, 100%);
  margin: clamp(18px, 4vh, 42px) auto;
  padding-inline: clamp(0px, 2vw, 24px);
}

.video-onboarding-brand {
  display: block;
  width: fit-content;
  margin: 0 auto 22px;
  color: #fff;
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: lowercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.72);
}

.video-onboarding-brand:focus-visible {
  border-radius: 2px;
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.video-onboarding-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: clamp(32px, 6vw, 76px);
  border: 1px solid rgba(244, 239, 231, 0.26);
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 82% 22%, rgba(164, 198, 174, 0.15), transparent 44%),
    linear-gradient(135deg, rgba(244, 239, 231, 0.1), rgba(127, 176, 139, 0.07)),
    rgba(10, 14, 12, 0.72);
  color: #f4efe7;
  text-align: left;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 250, 244, 0.06) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  isolation: isolate;
}

.video-onboarding-card::before {
  position: absolute;
  z-index: -1;
  top: -190px;
  right: -100px;
  width: clamp(280px, 44vw, 580px);
  aspect-ratio: 1;
  border: 1px solid rgba(164, 198, 174, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, rgba(244, 239, 231, 0.2), transparent 14%),
    radial-gradient(circle at 42% 42%, rgba(127, 176, 139, 0.19), rgba(16, 20, 18, 0.03) 58%, transparent 72%);
  box-shadow: 0 0 80px rgba(127, 176, 139, 0.12), inset 0 0 46px rgba(244, 239, 231, 0.04);
  content: "";
}

.video-onboarding-card::after {
  position: absolute;
  right: clamp(22px, 4vw, 54px);
  bottom: clamp(18px, 3vw, 38px);
  color: rgba(185, 120, 95, 0.86);
  content: "01 / INKAA";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.video-onboarding-card::after { content: none; }

.video-onboarding-card h1 {
  max-width: 760px;
  margin: 0 auto;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 4.4vw, 4.1rem);
  font-weight: 540;
  letter-spacing: -0.075em;
  line-height: 0.98;
  text-wrap: balance;
}

.video-onboarding-card .is-story-transitioning {
  animation: video-onboarding-copy-arrive 620ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.video-onboarding-card p.is-story-transitioning {
  animation-delay: 70ms;
}

.video-onboarding-card .video-onboarding-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  width: min(720px, 100%);
  max-width: none;
  margin: 0 auto 20px;
  color: #a4c6ae;
  font-size: clamp(0.7rem, 1.1vw, 0.82rem);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-onboarding-eyebrow::before,
.video-onboarding-eyebrow::after {
  flex: 1 1 auto;
  max-width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e78b47);
  content: "";
}

.video-onboarding-eyebrow::after { background: linear-gradient(90deg, #e78b47, transparent); }

.video-onboarding-card p {
  max-width: 530px;
  margin: 16px 0 24px;
  color: rgba(244, 239, 231, 0.76);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

.video-onboarding-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.8vw, 36px);
  max-width: 920px;
  margin: 34px 0 30px;
  padding: 0;
  list-style: none;
}

.video-onboarding-steps::before {
  position: absolute;
  top: 17px;
  right: 15%;
  left: 15%;
  height: 1px;
  background: linear-gradient(90deg, rgba(164, 198, 174, 0.72), rgba(244, 239, 231, 0.18) 54%);
  content: "";
}

.video-onboarding-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  color: rgba(244, 239, 231, 0.56);
  font-size: 0.82rem;
  line-height: 1.3;
}

.video-onboarding-step-icon {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(244, 239, 231, 0.3);
  border-radius: 50%;
  background: #151b17;
  color: rgba(244, 239, 231, 0.7);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.video-onboarding-step.is-complete {
  color: #dbe8dd;
}

.video-onboarding-step.is-complete .video-onboarding-step-icon {
  border-color: rgba(164, 198, 174, 0.82);
  background: rgba(127, 176, 139, 0.19);
  color: #b8dbbf;
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(127, 176, 139, 0.16);
}

.video-onboarding-step.is-current {
  color: #fffaf4;
}

.video-onboarding-step.is-current .video-onboarding-step-icon {
  border-color: #a4c6ae;
  color: #d9e8dc;
  box-shadow: 0 0 22px rgba(127, 176, 139, 0.23);
}

.video-onboarding-step.is-current .video-onboarding-step-icon::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(164, 198, 174, 0.55);
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: video-onboarding-spin 1.8s linear infinite;
}

.video-onboarding-step.is-error {
  color: #f0b5a1;
}

.video-onboarding-step.is-error .video-onboarding-step-icon {
  border-color: rgba(185, 120, 95, 0.85);
  background: rgba(185, 120, 95, 0.16);
  color: #f0b5a1;
}

.video-onboarding-card progress {
  display: block;
  width: min(500px, 100%);
  height: 5px;
  margin: 20px 0 0;
  border: 0;
  border-radius: 0;
  background: rgba(244, 239, 231, 0.14);
  color: #a4c6ae;
  accent-color: #a4c6ae;
}

.video-onboarding-card progress::-webkit-progress-bar {
  border-radius: 0;
  background: rgba(244, 239, 231, 0.14);
}

.video-onboarding-card progress::-webkit-progress-value {
  background: linear-gradient(90deg, #b9785f, #a4c6ae);
}

.video-onboarding-spinner {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 0 16px;
  border: 1px solid rgba(244, 239, 231, 0.28);
  border-top-color: #a4c6ae;
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(127, 176, 139, 0.28), inset 0 0 14px rgba(164, 198, 174, 0.16);
  animation: video-onboarding-spin 1.15s linear infinite;
}

.video-onboarding-retry {
  position: relative;
  z-index: 0;
  overflow: hidden;
  min-width: 190px;
  min-height: 54px;
  padding: 12px 24px;
  border: 1px solid rgba(244, 239, 231, 0.46);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(244, 239, 231, 0.12), rgba(127, 176, 139, 0.1)),
    rgba(10, 14, 12, 0.38);
  color: #fffaf4;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  isolation: isolate;
  box-shadow: 0 0 0 1px rgba(255, 250, 244, 0.08) inset, 0 18px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.video-onboarding-retry::before,
.video-onboarding-retry::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
}

.video-onboarding-retry::before {
  background: linear-gradient(100deg, transparent 18%, rgba(255, 250, 244, 0.72) 50%, transparent 82%);
  transform: translateX(-130%) skewX(-18deg);
}

.video-onboarding-retry::after {
  inset: 3px;
  border: 1px solid rgba(164, 198, 174, 0.26);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 200ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.video-onboarding-retry:hover,
.video-onboarding-retry:focus-visible {
  border-color: rgba(244, 239, 231, 0.82);
  background:
    linear-gradient(135deg, rgba(244, 239, 231, 0.2), rgba(127, 176, 139, 0.18)),
    rgba(10, 14, 12, 0.56);
  box-shadow: 0 0 26px rgba(127, 176, 139, 0.15), 0 18px 54px rgba(0, 0, 0, 0.28);
  outline: none;
  transform: translateY(-2px);
}

.video-onboarding-retry:hover::before,
.video-onboarding-retry:focus-visible::before {
  animation: video-onboarding-sheen 950ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.video-onboarding-retry:hover::after,
.video-onboarding-retry:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.video-onboarding-videos {
  display: grid;
  justify-items: center;
  margin-top: 28px;
}

.video-onboarding-mini-player {
  display: grid;
  gap: 8px;
  width: min(100%, 250px);
}

.video-onboarding-mini-progress {
  display: flex;
  gap: 4px;
  width: 100%;
}

.video-onboarding-mini-segment {
  display: block;
  flex: 1 1 0;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(243, 236, 223, 0.3);
}

.video-onboarding-mini-segment-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

.video-onboarding-mini-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 231, 0.24);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.video-onboarding-mini-stage video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.video-onboarding-mini-identity {
  position: absolute;
  top: 12px;
  right: auto;
  bottom: auto;
  left: 12px;
  display: flex;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 5px 9px 5px 5px;
  text-align: left;
  pointer-events: none;
}

.video-onboarding-mini-identity img {
  width: 32px;
  height: 32px;
}

.video-onboarding-mini-identity .video-presentation-identity {
  flex: 1 1 auto;
  width: 100%;
  gap: 3px;
  transform: none;
  font-size: 0.72rem;
}

.video-onboarding-mini-identity .video-presentation-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-onboarding-mini-progress {
  gap: 3px;
  height: 3px;
}

.video-onboarding-mini-domain {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  font-size: 0.63em;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.video-onboarding-offers {
  width: min(980px, 100%);
  margin: 34px auto 0;
}

.video-onboarding-offers > h2 {
  margin: 0 0 18px;
  color: #f3ecdf;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 600;
  text-align: center;
}

.video-onboarding-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.video-onboarding-offer {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid rgba(243, 236, 223, 0.2);
  border-radius: 8px;
  background: rgba(9, 9, 8, 0.46);
}

.video-onboarding-offer.is-free {
  border-color: rgba(231, 139, 71, 0.72);
  box-shadow: 0 0 28px rgba(231, 139, 71, 0.09);
}

.video-onboarding-offer h3 {
  margin: 0;
  color: #fffaf4;
  font-size: 1.05rem;
}

.video-onboarding-offer p {
  flex: 1 1 auto;
  margin: 10px 0 18px;
  color: rgba(244, 239, 231, 0.7);
  font-size: 0.88rem;
  line-height: 1.5;
}

.video-onboarding-offer button {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(244, 239, 231, 0.34);
  border-radius: 999px;
  background: rgba(244, 239, 231, 0.08);
  color: #fffaf4;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.video-onboarding-offer.is-free button {
  border-color: #e78b47;
  background: linear-gradient(120deg, rgba(231, 139, 71, 0.26), rgba(164, 198, 174, 0.16));
}

.video-onboarding-offer button:hover,
.video-onboarding-offer button:focus-visible {
  border-color: #e78b47;
  outline: 2px solid rgba(231, 139, 71, 0.24);
  outline-offset: 2px;
}

.video-onboarding-offer-notice {
  min-height: 1.5em;
  margin: 14px 0 0 !important;
  color: #f2c29d !important;
  font-size: 0.9rem !important;
  text-align: center;
}

html.is-video-onboarding-free-active,
html.is-video-onboarding-free-active body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #000;
}

html.is-video-onboarding-free-active .profile-page {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
  background: #000;
}

html.is-video-onboarding-free-active .profile-cover-banner,
html.is-video-onboarding-free-active .video-onboarding-brand,
html.is-video-onboarding-free-active .video-onboarding-eyebrow,
html.is-video-onboarding-free-active .video-onboarding-card h1,
html.is-video-onboarding-free-active .video-onboarding-card > p,
html.is-video-onboarding-free-active .video-onboarding-steps,
html.is-video-onboarding-free-active .video-onboarding-spinner,
html.is-video-onboarding-free-active .video-onboarding-card progress,
html.is-video-onboarding-free-active .video-onboarding-retry,
html.is-video-onboarding-free-active .video-onboarding-offers {
  display: none !important;
}

html.is-video-onboarding-free-active .video-onboarding-panel {
  position: fixed;
  inset: 0;
  z-index: 10001;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: 0;
}

html.is-video-onboarding-free-active .video-onboarding-card {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

html.is-video-onboarding-free-active .video-onboarding-card::before,
html.is-video-onboarding-free-active .video-onboarding-card::after {
  display: none;
}

html.is-video-onboarding-free-active .video-onboarding-videos {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: block !important;
  width: 100vw;
  height: 100dvh;
  margin: 0;
}

html.is-video-onboarding-free-active .video-onboarding-mini-player,
html.is-video-onboarding-free-active .video-onboarding-mini-stage {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html.is-video-onboarding-free-active .video-onboarding-mini-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html.is-video-onboarding-free-active .video-onboarding-mini-identity {
  top: max(18px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  padding: 8px 14px 8px 8px;
}

html.is-video-onboarding-free-active .video-onboarding-mini-identity img {
  width: 42px;
  height: 42px;
}

@media (max-width: 760px) {
  .video-onboarding-offer-grid { grid-template-columns: 1fr; }
  .video-onboarding-offer { min-height: 0; }
}

@keyframes video-onboarding-spin {
  to { transform: rotate(360deg); }
}

@keyframes video-onboarding-copy-arrive {
  from { opacity: 0; filter: blur(3px); transform: translateY(10px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes video-onboarding-sheen {
  to { transform: translateX(130%) skewX(-18deg); }
}

@media (max-width: 720px) {
  .video-onboarding-card { min-height: 340px; padding: 28px 22px 56px; }
  .video-onboarding-card h1 { font-size: clamp(1.8rem, 9vw, 3.2rem); }
  .video-onboarding-card p { margin: 14px 0 22px; }
  .video-onboarding-steps {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 28px 0;
  }
  .video-onboarding-steps::before {
    top: 17px;
    bottom: 17px;
    left: 17px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgba(164, 198, 174, 0.72), rgba(244, 239, 231, 0.18));
  }
  .video-onboarding-step { grid-template-columns: 36px 1fr; }
  .video-onboarding-mini-player { width: min(100%, 220px); }
}

@media (prefers-reduced-motion: reduce) {
  .video-onboarding-card .is-story-transitioning { animation: none; }
  .video-onboarding-spinner { animation-duration: 2.4s; }
  .video-onboarding-retry:hover::before,
  .video-onboarding-retry:focus-visible::before { animation: none; }
  .video-onboarding-retry,
  .video-onboarding-retry::after { transition-duration: 0.01ms; }
}
