:root {
  color-scheme: dark;
  --bg: #070708;
  --panel: #111316;
  --panel-2: #171a1f;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f4f7fb;
  --muted: #a1a9b5;
  --soft: #6d7480;
  --cyan: #45d6ff;
  --gold: #d9a441;
  --rose: #d9697a;
  --green: #74d7a2;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body.modal-lock {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

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

img,
video {
  display: block;
  width: 100%;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 10px;
  align-content: center;
  background:
    radial-gradient(circle at 42% 28%, rgba(69, 214, 255, 0.16), transparent 24rem),
    #070708;
  color: var(--text);
}

.boot-screen strong {
  font-size: 28px;
}

.boot-screen span {
  color: var(--muted);
}

.site-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(circle at 13% 4%, rgba(69, 214, 255, 0.17), transparent 26rem),
    radial-gradient(circle at 91% 12%, rgba(217, 164, 65, 0.12), transparent 25rem),
    linear-gradient(180deg, #08090b 0%, #0d0f12 42%, #070708 100%);
}

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.section-band {
  position: relative;
  padding: 86px 24px;
}

.content-wrap,
.content-grid,
.hero-inner,
.topbar {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  font-weight: 800;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--cyan);
}

.hr-fixed,
.edit-fixed {
  position: fixed;
  z-index: 30;
  top: 18px;
  border: 1px solid rgba(69, 214, 255, 0.45);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--text);
  background: rgba(10, 13, 16, 0.82);
  backdrop-filter: blur(14px);
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(69, 214, 255, 0.14);
}

.hr-fixed {
  right: 18px;
}

.edit-fixed {
  right: 150px;
  border-color: rgba(217, 164, 65, 0.56);
  box-shadow: 0 10px 35px rgba(217, 164, 65, 0.13);
}

.hero {
  min-height: 94vh;
  padding-top: 0;
  display: flex;
  flex-direction: column;
}

.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 56px;
  align-items: center;
  padding-bottom: 42px;
}

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.02;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
}

.hero-title {
  margin-top: 18px;
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
}

.hero-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 13px 10px 10px;
  background: rgba(255, 255, 255, 0.045);
}

.hero-identity img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #111316;
}

.hero-identity div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.hero-identity strong {
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.hero-identity span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.hero-summary,
.section-header p,
.profile-copy p,
.contact p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-summary {
  max-width: 600px;
  margin-top: 18px;
  font-size: 17px;
}

.hero-actions,
.profile-actions,
.hr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), #7fd7a6);
  color: #031013;
  font-weight: 800;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.035);
}

.button.compact {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.button:hover,
.filter-button:hover,
.tool-button:hover,
.contact-panel button:hover,
.contact-panel a:hover {
  transform: translateY(-1px);
  border-color: rgba(69, 214, 255, 0.52);
}

.role-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.role-strip span,
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: #dce6f2;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.hero-media {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 540px;
  box-shadow: var(--shadow);
  background: #0a0c0f;
}

.hero-media video,
.showreel-player video,
.full-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050607;
}

.hero-media::after,
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(transparent 55%, rgba(0, 0, 0, 0.55)),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
}

.media-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(4, 5, 7, 0.62);
  backdrop-filter: blur(16px);
}

.media-caption span {
  color: var(--muted);
  font-size: 12px;
}

.section-header {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-header p {
  margin-top: 14px;
}

.profile {
  background: rgba(255, 255, 255, 0.015);
}

.content-grid,
.profile-grid,
.skills-grid,
.contact-grid,
.modal-main,
.modal-lower,
.workflow-grid {
  display: grid;
  gap: 28px;
}

.profile-grid {
  grid-template-columns: 0.84fr 1.16fr;
  align-items: center;
}

.avatar-panel,
.profile-copy,
.tool-panel,
.contact-panel,
.hr-modal,
.project-modal,
.workflow-preview,
.showreel-player,
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 19, 22, 0.78);
  box-shadow: var(--shadow);
}

.avatar-panel {
  overflow: hidden;
}

.avatar-panel img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.avatar-panel div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  color: var(--muted);
}

.avatar-panel strong {
  color: var(--text);
}

.profile-copy {
  padding: 32px;
}

.profile-tags,
.skill-cloud,
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-button,
.tool-button,
.contact-panel button,
.contact-panel a,
.hr-block button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: 180ms ease;
}

.filter-button.is-active,
.tool-button.is-active {
  border-color: rgba(69, 214, 255, 0.65);
  background: rgba(69, 214, 255, 0.13);
  color: #c9f4ff;
}

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

.project-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  border-color: rgba(69, 214, 255, 0.48);
  transform: translateY(-4px);
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #090a0d;
}

.project-media img,
.project-media video {
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, opacity 220ms ease;
}

.project-media video {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.project-card:hover .project-media img {
  transform: scale(1.05);
}

.project-card:hover .project-media video {
  opacity: 1;
}

.card-action {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: 180ms ease;
}

.project-card:hover .card-action,
.project-card:focus-within .card-action {
  opacity: 1;
  transform: translateY(0);
}

.project-body {
  padding: 18px;
}

.project-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-title-line span,
.project-body small,
.project-body p {
  color: var(--muted);
}

.project-body p {
  margin-top: 7px;
}

.project-body small {
  display: block;
  margin-top: 12px;
  line-height: 1.6;
}

.modal-backdrop,
.hr-modal-backdrop,
.editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(16px);
}

.editor-backdrop {
  z-index: 60;
  align-items: stretch;
  justify-items: end;
  padding: 14px;
}

.project-modal {
  width: min(1180px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  animation: modalIn 180ms ease both;
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 22px;
  background: rgba(17, 19, 22, 0.92);
  backdrop-filter: blur(14px);
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-main {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  padding: 22px;
}

.full-video {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050607;
}

.video-note {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--soft);
  background: rgba(5, 6, 7, 0.78);
  backdrop-filter: blur(10px);
  font-size: 13px;
  line-height: 1.55;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--muted);
}

.project-info dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.project-info dl div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
}

.project-info dt {
  color: var(--soft);
}

.project-info dd {
  margin: 0;
  color: var(--text);
}

.highlight-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: #d7dde7;
}

.modal-lower {
  grid-template-columns: 1fr 1fr;
  padding: 0 22px 22px;
}

.modal-lower.single {
  grid-template-columns: 1fr;
}

.shot-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.shot-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
}

.shot-toggle {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 0;
  padding: 10px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.shot-toggle img {
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.shot-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.shot-detail > * {
  overflow: hidden;
}

.shot-detail.is-open {
  grid-template-rows: 1fr;
  padding: 0 16px 16px;
}

.shot-detail p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.ba-section h3 {
  margin-bottom: 14px;
}

.ba-slider {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050607;
}

.ba-slider img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.ba-after {
  clip-path: inset(0 0 0 var(--split));
}

.ba-slider::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 22px rgba(69, 214, 255, 0.9);
}

.ba-slider input {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.ba-label {
  position: absolute;
  z-index: 5;
  top: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-size: 12px;
}

.ba-label.before {
  left: 12px;
}

.ba-label.after {
  right: 12px;
}

.workflow-grid {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: stretch;
}

.workflow-steps {
  position: relative;
  display: grid;
  gap: 12px;
}

.workflow-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  cursor: pointer;
}

.workflow-step span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #081014;
  background: var(--gold);
  font-weight: 900;
}

.workflow-step small {
  color: var(--muted);
  line-height: 1.6;
}

.workflow-step.is-active {
  border-color: rgba(69, 214, 255, 0.62);
  background: rgba(69, 214, 255, 0.1);
  box-shadow: 0 0 30px rgba(69, 214, 255, 0.08);
}

.workflow-preview {
  overflow: hidden;
  transform: translateZ(0);
}

.workflow-preview img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #090a0d;
}

.workflow-preview.is-switching img,
.workflow-preview.is-switching h3,
.workflow-preview.is-switching p {
  animation: workflowSoftSwap 180ms ease both;
}

.workflow-preview div {
  padding: 22px;
}

.workflow-preview p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.75;
}

@keyframes workflowSoftSwap {
  from {
    opacity: 0.72;
  }
  to {
    opacity: 1;
  }
}

.skills-grid {
  grid-template-columns: 0.8fr 1.2fr;
}

.skills h3 {
  margin-bottom: 18px;
}

.tool-board {
  position: relative;
}

.tool-panel-slot {
  min-height: 0;
}

.tool-panel-slot.is-switching .tool-panel {
  animation: workflowSoftSwap 160ms ease both;
}

.tool-button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-panel {
  margin-top: 16px;
  padding: 20px;
}

.tool-panel span,
.tool-panel small {
  color: var(--muted);
}

.tool-panel h4 {
  margin-top: 8px;
  font-size: 22px;
}

.tool-panel p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.tool-panel small {
  display: block;
  margin-top: 14px;
}

.showreel-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8;
}

.contact {
  padding-bottom: 56px;
  background: rgba(255, 255, 255, 0.018);
}

.contact-grid {
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.contact-panel button,
.contact-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  text-align: left;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.socials a {
  justify-content: center;
}

.hr-modal-backdrop[hidden] {
  display: none;
}

.hr-modal {
  width: min(560px, 100%);
  padding-bottom: 22px;
  animation: modalIn 180ms ease both;
}

.editor-modal {
  width: min(1040px, 100%);
  max-height: calc(100vh - 28px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 19, 22, 0.96);
  box-shadow: var(--shadow);
  animation: modalIn 180ms ease both;
}

.editor-note,
.editor-help {
  margin: 18px 22px 0;
  color: var(--muted);
  line-height: 1.65;
}

.editor-help.no-margin {
  margin: 0;
}

.editor-status {
  margin: 16px 22px 0;
  border: 1px solid rgba(69, 214, 255, 0.35);
  border-radius: var(--radius);
  padding: 11px 13px;
  color: #d7f7ff;
  background: rgba(69, 214, 255, 0.1);
  line-height: 1.55;
}

.editor-status[data-tone="warning"] {
  border-color: rgba(217, 164, 65, 0.42);
  color: #ffe0a6;
  background: rgba(217, 164, 65, 0.11);
}

.editor-status[data-tone="done"] {
  border-color: rgba(116, 215, 162, 0.42);
  color: #c9ffdf;
  background: rgba(116, 215, 162, 0.1);
}

.editor-tabs {
  position: sticky;
  top: 86px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 14px 22px;
  background: rgba(17, 19, 22, 0.94);
  backdrop-filter: blur(14px);
}

.editor-tabs button,
.project-editor-list button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.editor-tabs button.is-active,
.project-editor-list button.is-active {
  border-color: rgba(69, 214, 255, 0.65);
  background: rgba(69, 214, 255, 0.12);
}

.editor-body {
  padding: 22px;
}

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

.editor-form.single {
  grid-template-columns: 1fr;
}

.editor-field {
  display: grid;
  gap: 8px;
}

.editor-field.wide,
.editor-actions.wide,
.editor-subsection.wide {
  grid-column: 1 / -1;
}

.editor-field span,
.editor-subsection h3,
.editor-subhead h3,
.project-editor-list small {
  color: var(--muted);
}

.editor-field input,
.editor-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.26);
  outline: none;
}

.editor-field input:focus,
.editor-field textarea:focus {
  border-color: rgba(69, 214, 255, 0.62);
}

.editor-field small {
  color: var(--soft);
  word-break: break-all;
}

.editor-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  align-items: center;
  margin-top: 10px;
  color: var(--text);
}

.editor-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.editor-check small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.55;
}

.editor-file-preview {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #090a0d;
}

.editor-preview-slot:empty {
  display: none;
}

.editor-video-preview {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #090a0d;
}

.editor-modal :disabled {
  cursor: wait;
  opacity: 0.68;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.button.danger {
  border-color: rgba(217, 105, 122, 0.45);
  color: #ffd7dd;
  background: rgba(217, 105, 122, 0.12);
}

.project-editor-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
}

.project-editor-list {
  position: sticky;
  top: 155px;
  align-self: start;
  display: grid;
  gap: 10px;
}

.project-editor-list button {
  display: grid;
  gap: 4px;
  text-align: left;
}

.editor-subsection {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.026);
}

.editor-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shot-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.shot-editor strong {
  grid-column: 1 / -1;
}

.backup-panel {
  display: grid;
  gap: 16px;
}

.backup-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.hidden-input {
  display: none;
}

.empty-editor {
  display: grid;
  gap: 16px;
  color: var(--muted);
}

.hr-summary,
.hr-block,
.hr-actions {
  padding: 0 22px;
}

.hr-summary {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.hr-summary p,
.hr-summary span {
  color: var(--muted);
  line-height: 1.6;
}

.hr-block {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.hr-block button {
  text-align: left;
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--text);
  background: rgba(10, 12, 14, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .section-band {
    padding: 70px 18px;
  }

  .hero-inner,
  .profile-grid,
  .workflow-grid,
  .skills-grid,
  .contact-grid,
  .modal-main,
  .modal-lower {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    gap: 28px;
    padding-top: 32px;
  }

  .hero-media {
    min-height: 360px;
  }

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

  .showreel-player {
    aspect-ratio: 16 / 10;
  }

  .full-video {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    gap: 14px;
  }

  .nav-links {
    display: none;
  }

  .hr-fixed {
    top: auto;
    right: 14px;
    bottom: 14px;
  }

  .edit-fixed {
    top: auto;
    right: 150px;
    bottom: 14px;
  }

  .hero-actions,
  .profile-actions,
  .hr-actions {
    flex-direction: column;
  }

  .button,
  .filter-button,
  .tool-button {
    width: 100%;
  }

  .hero-media {
    min-height: 300px;
  }

  .avatar-panel div,
  .media-caption,
  .project-title-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-backdrop,
  .hr-modal-backdrop {
    padding: 10px;
  }

  .project-modal {
    max-height: 94vh;
  }

  .editor-backdrop {
    padding: 8px;
  }

  .editor-modal {
    max-height: calc(100vh - 16px);
  }

  .editor-tabs {
    top: 78px;
  }

  .editor-form,
  .project-editor-layout,
  .shot-editor {
    grid-template-columns: 1fr;
  }

  .project-editor-list {
    position: static;
  }

  .modal-header,
  .modal-main,
  .modal-lower {
    padding: 16px;
  }

  .shot-toggle {
    grid-template-columns: 72px 1fr;
  }
}
