:root {
  --ink: #f3f3f0;
  --muted: #9a9a96;
  --line: rgba(243, 243, 240, 0.18);
  --paper: #101010;
  --paper-deep: #e8e8e6;
  --accent: #f3f3f0;
  --green: #233f34;
  --blue: #334b63;
  --white: #101010;
  --radius: 0;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-bold: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 400;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body[data-theme="light"] {
  --ink: #101010;
  --muted: #707070;
  --line: rgba(16, 16, 16, 0.16);
  --paper: #ffffff;
  --paper-deep: #f2f2f2;
  --accent: #101010;
  --white: #ffffff;
}

body[data-theme="dark"] {
  --ink: #f3f3f0;
  --muted: #9a9a96;
  --line: rgba(243, 243, 240, 0.18);
  --paper: #101010;
  --paper-deep: #e8e8e6;
  --accent: #f3f3f0;
  --white: #101010;
}

button,
input,
textarea {
  font: inherit;
}

button,
.ghost-link {
  min-height: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  text-decoration: underline;
  font-size: 12px;
}

button:hover,
.ghost-link:hover {
  border-color: rgba(23, 22, 20, 0.34);
}

.site-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.profile-panel {
  position: relative;
  top: auto;
  min-height: 64svh;
  display: grid;
  grid-template-columns: minmax(280px, 620px) minmax(180px, 1fr);
  align-content: start;
  gap: clamp(28px, 8vw, 120px);
  overflow: hidden;
  padding: 16px 16px 46px;
  background: var(--paper);
  border-right: 0;
}

.profile-copy {
  position: relative;
  z-index: 2;
  align-self: start;
  max-width: 560px;
}

.brand-mark,
.section-kicker {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
}

.profile-copy h1 {
  max-width: 560px;
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
}

.profile-copy p:not(.brand-mark) {
  max-width: 590px;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.42;
  font-weight: 400;
  color: var(--ink);
  font-family: var(--font-serif);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  min-height: 20px;
}

.email-button {
  min-height: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  text-decoration: underline;
  font-size: 14px;
  font-weight: 400;
}

.copy-state {
  opacity: 0;
  color: var(--accent);
  font-size: 12px;
  transition: opacity 160ms ease;
}

.copy-state.is-visible {
  opacity: 1;
}

.social-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 400;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  opacity: 1;
  font-size: 14px;
  line-height: 1.25;
  transition: opacity 140ms ease;
}

.social-links a:hover {
  opacity: 0.68;
}

.profile-copy p.profile-email {
  margin: 7px 0 0;
  font-family: var(--font-sans);
}

.profile-copy p.profile-copyright {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 400;
  opacity: 0.5;
  font-family: var(--font-sans);
}

.site-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 6px;
}

.audio-toggle,
.theme-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ink);
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.audio-toggle:hover,
.theme-toggle:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border-color: color-mix(in srgb, var(--ink) 32%, transparent);
}

.audio-track-link {
  max-width: 0;
  min-width: 0;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: max-width 220ms ease, padding 220ms ease, opacity 160ms ease, transform 220ms ease, border-color 160ms ease;
}

.audio-player:hover .audio-track-link,
.audio-player:focus-within .audio-track-link {
  max-width: 280px;
  padding: 0 10px;
  border-color: var(--line);
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.audio-track-link:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border-color: color-mix(in srgb, var(--ink) 32%, transparent);
}

.audio-track-link svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audio-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audio-icon-play {
  fill: currentColor;
  stroke: none;
}

.audio-icon-pause {
  display: none;
}

.audio-player[data-state="playing"] .audio-icon-play {
  display: none;
}

.audio-player[data-state="playing"] .audio-icon-pause {
  display: block;
}

.audio-player audio {
  display: none;
}

.theme-icon {
  width: 16px;
  height: 16px;
  display: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-theme="dark"] .theme-icon-sun,
body[data-theme="light"] .theme-icon-moon {
  display: block;
}

.portrait {
  position: absolute;
  right: 38px;
  bottom: 38px;
  width: min(19vw, 260px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(0.86) contrast(1.04);
  opacity: 0;
  pointer-events: none;
}

.work-panel {
  min-width: 0;
  padding: 0 16px;
}

.work-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 24px;
  min-height: 38px;
  margin: -1px 0 0;
  padding: 0 0 15px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.work-header h2,
.admin-topbar h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
}

.work-header h2 {
  display: none;
}

.work-header .section-kicker {
  margin: 0;
  color: var(--muted);
  text-transform: none;
}

.update-meta {
  display: grid;
  justify-items: end;
  gap: 3px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  font-weight: 400;
}

.update-meta b {
  font-weight: 400;
}

.project-list {
  display: grid;
  grid-template-columns: 1fr;
}

.project {
  display: grid;
  grid-template-columns: minmax(230px, 0.43fr) minmax(320px, 0.57fr);
  gap: 16px;
  padding: 16px 0 34px;
  border-bottom: 1px solid var(--line);
}

.project h3 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  font-family: var(--font-serif);
}

.project p {
  max-width: 440px;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.42;
  font-weight: 400;
  font-family: var(--font-serif);
}

.meta-list {
  display: grid;
  gap: 0;
  width: min(100%, 420px);
  margin: 22px 0 0;
  font-size: 14px;
  font-weight: 400;
}

.meta-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.meta-row dt {
  color: var(--muted);
}

.meta-row dd {
  margin: 0;
}

.case-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
}

.media-carousel {
  position: relative;
  width: 100%;
  max-width: 760px;
  justify-self: end;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper);
}

.media-strip {
  align-self: stretch;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.media-strip::-webkit-scrollbar {
  display: none;
}

.media-strip:active {
  cursor: grabbing;
}

.project-image {
  position: relative;
  margin: 0;
  height: 100%;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--paper);
}

.project-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
  filter: saturate(0.94) contrast(1.02);
  transition: transform 420ms ease;
}

.project-image:hover img {
  transform: scale(1.015);
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 30px;
  height: 30px;
  min-height: 30px;
  border: 1px solid color-mix(in srgb, var(--ink) 34%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  color: var(--ink);
  opacity: 0.64;
  padding: 0;
  text-decoration: none;
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
  outline: none;
  transition: opacity 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.carousel-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  min-width: 48px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--ink) 26%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 76%, transparent);
  color: var(--ink);
  font-size: 11px;
  line-height: 1;
  text-align: center;
  backdrop-filter: blur(14px);
}

.carousel-button-prev {
  left: 10px;
}

.carousel-button-next {
  right: 10px;
}

.media-carousel:hover .carousel-button,
.media-carousel:focus-within .carousel-button {
  opacity: 1;
}

.carousel-button:hover {
  background: color-mix(in srgb, var(--paper) 88%, var(--ink) 12%);
  border-color: color-mix(in srgb, var(--ink) 56%, transparent);
}

.carousel-button:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 28%, transparent);
}

.carousel-button:active {
  transform: translateY(-50%) scale(0.96);
}

.admin-body {
  --admin-bg: #f7f8fa;
  --admin-surface: #ffffff;
  --admin-surface-muted: #f2f4f6;
  --admin-ink: #191f28;
  --admin-muted: #6b7684;
  --admin-soft: #8b95a1;
  --admin-line: #e5e8eb;
  --admin-blue: #3182f6;
  --admin-blue-deep: #1b64da;
  --admin-red: #f04452;
  --admin-radius: 12px;
  background: var(--admin-bg);
  color: var(--admin-ink);
  font-weight: 500;
}

.admin-body button,
.admin-body .ghost-link {
  min-height: 36px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-surface);
  color: var(--admin-ink);
  padding: 0 13px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.admin-body button:hover,
.admin-body .ghost-link:hover {
  background: var(--admin-surface-muted);
  border-color: #d1d6db;
}

.admin-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.cms-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 24px;
  padding: 18px 14px;
  background: #111827;
  color: #f9fafb;
}

.cms-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 12px;
}

.cms-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--admin-blue);
  color: #fff;
  font-weight: 800;
}

.cms-brand strong,
.cms-brand span,
.cms-sidebar-card strong,
.cms-sidebar-card span {
  display: block;
}

.cms-brand strong {
  font-size: 14px;
}

.cms-brand span,
.cms-sidebar-card span,
.cms-sidebar-card p {
  color: #9ca3af;
  font-size: 12px;
}

.cms-nav {
  display: grid;
  gap: 4px;
}

.cms-nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-radius: 8px;
  color: #d1d5db;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.cms-nav a:hover,
.cms-nav a.is-active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.cms-nav span {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
}

.cms-sidebar-card {
  align-self: end;
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.cms-sidebar-card strong {
  font-size: 13px;
}

.cms-sidebar-card p {
  margin: 0;
  line-height: 1.35;
}

.cms-sidebar-card p[data-state="saved"] {
  color: #7dd3fc;
}

.cms-sidebar-card p[data-state="error"] {
  color: #fca5a5;
}

.admin-main {
  min-width: 0;
  padding: 22px 28px 54px;
}

.admin-topbar,
.login-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-topbar {
  min-height: 70px;
}

.admin-eyebrow {
  margin: 0 0 4px;
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-topbar h1 {
  margin: 0;
  color: var(--admin-ink);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.admin-body .primary-button {
  color: #fff;
  background: var(--admin-blue);
  border-color: var(--admin-blue);
}

.admin-body .primary-button:hover {
  background: var(--admin-blue-deep);
  border-color: var(--admin-blue-deep);
}

.login-strip {
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
  box-shadow: 0 1px 2px rgba(25, 31, 40, 0.04);
}

.login-strip strong,
.login-strip span {
  display: block;
}

.login-strip strong {
  font-size: 15px;
}

.login-strip span {
  margin-top: 3px;
  color: var(--admin-muted);
  font-size: 13px;
}

.login-strip label {
  min-width: min(100%, 330px);
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 700;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.38fr) minmax(0, 0.62fr);
  gap: 18px;
  align-items: start;
}

.editor-panel {
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
  padding: 18px;
  box-shadow: 0 1px 2px rgba(25, 31, 40, 0.04);
}

.profile-editor {
  position: sticky;
  top: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-heading span,
.image-section-title {
  color: var(--admin-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.editor-panel h2,
.editor-panel h3 {
  margin: 3px 0 0;
  color: var(--admin-ink);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

.editor-panel label {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-body input,
.admin-body textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--admin-surface-muted);
  color: var(--admin-ink);
  padding: 11px 12px;
  outline: none;
  font-size: 14px;
  font-weight: 600;
}

.admin-body textarea {
  resize: vertical;
  line-height: 1.45;
}

.admin-body input:focus,
.admin-body textarea:focus {
  border-color: var(--admin-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.14);
}

.field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.stacked-fields,
.projects-editor {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.project-cms-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.project-list-pane {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 10px;
}

.project-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}

.project-list-toolbar strong {
  color: var(--admin-ink);
  font-size: 14px;
  font-weight: 800;
}

.project-list-toolbar span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 800;
}

.project-list {
  display: grid;
  gap: 6px;
}

.project-list-item {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-content: stretch;
  gap: 10px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--admin-ink);
  text-align: left;
  text-decoration: none;
}

.project-list-item:hover {
  background: var(--admin-surface-muted);
}

.project-list-item.is-selected {
  border-color: rgba(49, 130, 246, 0.24);
  background: rgba(49, 130, 246, 0.1);
}

.project-list-item span,
.project-list-item em {
  color: var(--admin-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.project-list-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--admin-ink);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-detail-pane {
  min-width: 0;
}

.mini-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.45fr) minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.project-editor {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-radius);
  background: #fff;
}

.project-empty {
  display: grid;
  gap: 6px;
  min-height: 220px;
  align-content: center;
  justify-items: center;
  border: 1px dashed #c9d1d9;
  border-radius: var(--admin-radius);
  background: #fff;
  color: var(--admin-muted);
  text-align: center;
}

.project-empty strong {
  color: var(--admin-ink);
  font-size: 16px;
}

.project-empty span {
  font-size: 13px;
}

.project-editor header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--admin-line);
}

.project-editor header span {
  display: block;
  margin-bottom: 3px;
  color: var(--admin-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-editor header strong {
  color: var(--admin-ink);
  font-size: 18px;
  line-height: 1.2;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--admin-line);
}

.gallery-heading span {
  display: block;
  color: var(--admin-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-heading strong {
  display: block;
  margin-top: 3px;
  color: var(--admin-ink);
  font-size: 16px;
  line-height: 1.25;
}

.gallery-heading em {
  min-width: 48px;
  min-height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--admin-surface-muted);
  color: var(--admin-muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.gallery-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #fff;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(49, 130, 246, 0.14), rgba(139, 149, 161, 0.12)),
    var(--admin-surface-muted);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-thumb span {
  position: absolute;
  left: 8px;
  top: 8px;
  min-width: 26px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.gallery-thumb.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #c9d1d9;
}

.gallery-thumb.is-empty::after {
  content: "이미지 URL";
  color: var(--admin-soft);
  font-size: 12px;
  font-weight: 800;
}

.gallery-item button {
  justify-self: start;
}

.gallery-help {
  margin: 0;
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .site-shell,
  .project,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .project > div:first-child {
    order: 2;
  }

  .project .media-strip {
    order: 1;
  }

  .profile-panel {
    position: relative;
    height: auto;
    min-height: 58svh;
    grid-template-columns: 1fr;
  }

  .portrait {
    display: none;
  }

  .work-header {
    position: relative;
    min-height: 0;
    align-items: start;
  }

  .media-carousel {
    order: 1;
  }

  .admin-app {
    grid-template-columns: 1fr;
  }

  .cms-sidebar {
    position: relative;
    height: auto;
    grid-template-rows: auto;
  }

  .cms-sidebar-card {
    align-self: auto;
  }

  .admin-main {
    padding: 18px;
  }

  .profile-editor {
    position: relative;
    top: auto;
  }

  .project-cms-layout {
    grid-template-columns: 1fr;
  }

  .project-list-pane {
    position: relative;
    top: auto;
  }

  .project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-panel > .project-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .admin-app {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .cms-sidebar {
    position: sticky;
    height: 100vh;
  }

  .admin-main {
    padding: 18px 16px 42px;
  }
}

@media (max-width: 640px) {
  .audio-player:hover .audio-track-link,
  .audio-player:focus-within .audio-track-link {
    max-width: calc(100vw - 126px);
  }

  .profile-panel,
  .work-panel {
    padding: 16px;
  }

  .profile-copy h1 {
    font-size: 14px;
  }

  .work-header,
  .admin-topbar,
  .login-strip {
    display: grid;
    justify-items: start;
  }

  .admin-topbar,
  .login-strip {
    gap: 14px;
  }

  .admin-actions {
    justify-content: start;
  }

  .editor-panel,
  .project-editor,
  .login-strip {
    padding: 14px;
  }

  .update-meta {
    justify-items: start;
    white-space: normal;
  }

  .compact-grid,
  .mini-row,
  .project-list,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Framer-like CMS workspace */
.admin-body {
  --admin-bg: #eeeeee;
  --admin-surface: #ffffff;
  --admin-surface-muted: #f3f3f3;
  --admin-ink: #1f1f1f;
  --admin-muted: #777777;
  --admin-soft: #9a9a9a;
  --admin-line: #dedede;
  --admin-blue: #0099ff;
  --admin-blue-deep: #0088ee;
  --admin-radius: 8px;
  background: var(--admin-bg);
  color: var(--admin-ink);
  font-family: var(--font-sans);
}

.framer-top-chrome {
  height: 42px;
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  align-items: center;
  border-bottom: 1px solid var(--admin-line);
  background: #fff;
  color: var(--admin-ink);
  font-size: 13px;
}

.framer-project-switcher,
.framer-project-title,
.framer-publish-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

.framer-project-title {
  justify-content: center;
  font-weight: 700;
}

.framer-project-title em {
  padding: 3px 7px;
  border-radius: 7px;
  background: #f1f1f1;
  color: #777;
  font-style: normal;
  font-size: 11px;
}

.framer-publish-actions {
  justify-content: flex-end;
}

.framer-publish-actions a {
  min-height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  color: var(--admin-ink);
  text-decoration: none;
}

.framer-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.admin-app {
  min-height: calc(100vh - 42px);
  grid-template-columns: 260px minmax(0, 1fr) 260px;
}

.cms-sidebar {
  height: calc(100vh - 42px);
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: 10px;
  border-right: 1px solid var(--admin-line);
  background: #f7f7f7;
  color: var(--admin-ink);
}

.cms-brand {
  gap: 4px;
  padding: 8px 0;
}

.cms-brand button {
  flex: 1;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #777;
  padding: 0 8px;
  font-size: 12px;
}

.cms-brand button.is-active {
  background: #fff;
  color: #111;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.cms-search {
  position: relative;
  display: block;
}

.cms-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cms-search input {
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: #ededed;
  color: #333;
  padding: 0 11px;
  font-size: 13px;
}

.cms-nav a,
.cms-nav button {
  min-height: 30px;
  color: #555;
  border: 0;
  background: transparent;
  padding: 0 12px;
}

.cms-nav a:hover,
.cms-nav a.is-active {
  background: #e9e9e9;
  color: #111;
}

.cms-nav span {
  background: #dcdcdc;
  color: #777;
}

.cms-sidebar-card {
  padding: 12px;
  border-radius: 9px;
  background: #ededed;
}

.cms-sidebar-card span,
.cms-sidebar-card p {
  color: #777;
}

.admin-main {
  padding: 0;
  overflow: hidden;
}

.agent-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 18px 10px;
  border-left: 1px solid var(--admin-line);
  background: #fff;
}

.agent-panel strong {
  font-size: 13px;
}

.agent-card {
  min-height: 120px;
  border-radius: 12px;
  background: #f3f3f3;
  padding: 12px;
  color: #777;
  font-size: 13px;
}

.admin-topbar {
  min-height: 60px;
  padding: 0 14px;
  border-bottom: 1px solid var(--admin-line);
  background: #fff;
}

.admin-topbar h1 {
  font-size: 18px;
}

.login-strip {
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--admin-line);
  border-radius: 0;
  background: #fff;
}

.editor-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.profile-editor {
  display: none;
}

.works-panel {
  grid-column: 1 / -1;
  min-width: 0;
}

.editor-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.works-panel > .panel-heading {
  display: none;
}

.projects-editor {
  display: block;
  margin-top: 0;
}

.project-cms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0;
  min-height: calc(100vh - 42px - 60px - 56px);
}

.project-list-pane {
  position: relative;
  top: auto;
  min-width: 0;
  overflow: auto;
  border-right: 1px solid var(--admin-line);
  background: #fff;
}

.collection-toolbar {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid var(--admin-line);
}

.collection-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.collection-toolbar button {
  min-width: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #777;
  padding: 0 8px;
  font-size: 18px;
  line-height: 1;
}

.collection-toolbar button:hover {
  background: #f1f1f1;
}

.framer-table {
  min-width: 900px;
  display: grid;
}

.framer-row {
  min-height: 51px;
  display: grid;
  grid-template-columns: 28px 36px minmax(240px, 1.5fr) 96px minmax(180px, 1fr) 130px 92px 90px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #ededed;
  border-radius: 0;
  background: #fff;
  color: #333;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.framer-row .cell {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-right: 1px solid #ededed;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.framer-head {
  min-height: 50px;
  color: #777;
  font-size: 12px;
  font-weight: 700;
}

.project-list-item:hover {
  background: #f7f7f7;
}

.project-list-item.is-selected {
  background: #f0f6ff;
}

.drag-handle {
  color: #c1c1c1;
  justify-content: center;
}

.check-cell::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
}

.title-cell {
  font-weight: 600;
}

.status-cell {
  color: #16a36a;
}

.status-cell::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 999px;
  background: #16a36a;
}

.slug-cell,
.year-cell,
.count-cell {
  color: #777;
}

.thumb-cell img {
  width: 46px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
}

.project-detail-pane {
  min-width: 0;
  height: calc(100vh - 42px);
  overflow: auto;
  background: #f7f7f7;
}

.project-editor {
  gap: 14px;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: #f7f7f7;
}

.project-editor header {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--admin-line);
}

.compact-grid,
.gallery-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 1180px) {
  .framer-top-chrome,
  .admin-app {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .agent-panel {
    display: none;
  }

  .project-cms-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-detail-pane {
    height: auto;
    border-top: 1px solid var(--admin-line);
  }

  .framer-table {
    min-width: 760px;
  }
}

/* UX polish pass: denser Framer-style editor */
.framer-top-chrome {
  position: sticky;
  top: 0;
  z-index: 20;
  grid-template-columns: 230px 1fr auto;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.framer-publish-actions input {
  width: 118px;
  min-height: 30px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #f7f7f7;
  color: #333;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
}

.framer-publish-actions input:focus {
  border-color: var(--admin-blue);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.14);
}

.admin-topbar,
.login-strip {
  display: none;
}

.admin-app {
  grid-template-columns: 230px minmax(0, 1fr) 250px;
}

.cms-sidebar {
  padding: 8px;
}

.cms-brand {
  padding: 6px 0 8px;
}

.cms-nav {
  gap: 2px;
  align-content: start;
}

.cms-nav a,
.cms-nav button {
  min-height: 34px;
  border-radius: 7px;
  font-size: 13px;
}

.cms-nav a.is-active {
  min-height: 48px;
  background: #e7e7e7;
}

.cms-sidebar-card {
  align-self: end;
}

.project-cms-layout {
  min-height: calc(100vh - 42px);
}

.collection-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
}

.framer-row {
  min-height: 46px;
  grid-template-columns: 28px 34px minmax(210px, 1.45fr) 88px minmax(150px, 1fr) 116px 80px 80px;
  font-size: 13px;
}

.framer-head {
  min-height: 44px;
  font-size: 12px;
}

.framer-row .cell {
  padding: 0 12px;
}

.project-detail-pane {
  height: calc(100vh - 42px);
  background: #fafafa;
}

.project-editor {
  padding: 14px 12px 28px;
}

.project-editor header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fafafa;
}

.project-editor header strong {
  font-size: 17px;
}

.project-editor label {
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
}

.admin-body input,
.admin-body textarea {
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  background: #f0f0f0;
}

.gallery-grid {
  gap: 8px;
}

.gallery-item {
  padding: 8px;
  border-radius: 10px;
}

.gallery-thumb {
  border-radius: 8px;
}

.agent-panel {
  padding: 14px 10px;
}

.agent-card {
  min-height: 92px;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .framer-top-chrome {
    grid-template-columns: 72px 1fr auto;
  }

  .framer-project-switcher strong,
  .framer-publish-actions a,
  .framer-publish-actions input {
    display: none;
  }

  .admin-app {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cms-sidebar {
    padding: 8px 6px;
  }

  .cms-brand {
    grid-template-columns: 1fr;
  }

  .cms-brand button {
    padding: 0;
    font-size: 11px;
  }

  .cms-brand button:not(.is-active) {
    display: none;
  }

  .cms-search,
  .cms-sidebar-card {
    display: none;
  }

  .cms-nav a,
  .cms-nav button {
    min-height: 46px;
    justify-content: center;
    padding: 0;
    text-align: center;
    font-size: 0;
  }

  .cms-nav span {
    position: absolute;
    transform: translate(18px, -12px);
    min-width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .cms-nav a[href="#profileForm"]::before,
  .cms-nav a[href="#works"]::before,
  .cms-nav a[href="/"]::before,
  .cms-nav button::before {
    display: block;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
  }

  .cms-nav a[href="#profileForm"]::before {
    content: "프로필";
  }

  .cms-nav a[href="#works"]::before {
    content: "작업";
  }

  .cms-nav a[href="/"]::before {
    content: "보기";
  }

  .cms-nav button::before {
    content: "추가";
  }

  .project-cms-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-detail-pane {
    position: fixed;
    top: 42px;
    right: 0;
    bottom: 0;
    width: min(360px, calc(100vw - 72px));
    height: auto;
    z-index: 10;
    border-left: 1px solid var(--admin-line);
    box-shadow: -18px 0 34px rgba(0, 0, 0, 0.08);
  }

  .project-list-pane {
    padding-right: min(360px, calc(100vw - 72px));
  }

  .framer-table {
    min-width: 690px;
  }

  .framer-row {
    grid-template-columns: 24px 30px minmax(180px, 1.4fr) 78px minmax(130px, 1fr) 92px 68px 70px;
  }
}

@media (max-width: 680px) {
  .project-detail-pane {
    position: static;
    width: auto;
    box-shadow: none;
  }

  .project-list-pane {
    padding-right: 0;
  }
}

b,
strong,
.brand-mark,
.section-kicker,
.profile-copy h1,
.work-header h2,
.admin-topbar h1,
.project h3,
.admin-body button,
.admin-body .ghost-link,
.cms-logo,
.cms-nav a,
.admin-eyebrow,
.login-strip label,
.panel-heading span,
.image-section-title,
.editor-panel h2,
.editor-panel h3,
.editor-panel label,
.admin-body input,
.admin-body textarea,
.project-list-toolbar strong,
.project-list-toolbar span,
.project-list-item span,
.project-list-item em,
.project-list-item strong,
.project-editor header span,
.gallery-heading span,
.gallery-heading em,
.gallery-thumb span,
.gallery-thumb.is-empty::after,
.framer-project-title,
.framer-mark,
.framer-head,
.title-cell,
.framer-publish-actions input,
.cms-nav a[href="#profileForm"]::before,
.cms-nav a[href="#works"]::before,
.cms-nav a[href="/"]::before,
.cms-nav button::before {
  font-family: var(--font-bold);
}
