:root {
  color-scheme: dark;
  --ink: #0f0d0a;
  --ink-2: #18130e;
  --ink-3: #241911;
  --paper: #f6efe3;
  --paper-2: #fff9ed;
  --gold: #d7a944;
  --gold-2: #f7df9b;
  --red: #d5433a;
  --cyan: #34d4c6;
  --green: #60d28b;
  --muted: #cfc4ad;
  --muted-dark: #756b5b;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(28, 22, 15, 0.16);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --header: 78px;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: #fff8e8;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--header);
  padding: 12px max(20px, calc((100vw - 1240px) / 2));
  background: rgba(15, 13, 10, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

body.capture-mode .site-header {
  position: relative;
}

body.capture-mode .hero {
  min-height: 780px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 292px;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 10px;
  background: #050403;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  color: var(--gold-2);
  font-size: 0.9rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 18px;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transition: width 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff8e8;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  width: 100%;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wallet-mini,
.menu-toggle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff8e8;
}

.wallet-mini {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 132px;
  height: 40px;
  padding: 0 14px;
  font-weight: 800;
}

.wallet-mini.is-connected {
  border-color: rgba(96, 210, 139, 0.6);
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--red);
}

.wallet-mini.is-connected .dot {
  background: var(--green);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 40px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 900;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: #15100a;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #fff8e8;
}

.btn-dark {
  background: #15100a;
  color: #fff8e8;
}

.hero {
  position: relative;
  min-height: calc(86vh - var(--header));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slides,
.hero-slide,
.hero::after {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 800ms ease;
  overflow: hidden;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-framed {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.6vw, 22px);
  background:
    radial-gradient(circle at 50% 42%, rgba(216, 174, 75, 0.16), transparent 42%),
    linear-gradient(135deg, #050403, #15100a 54%, #050403);
}

.hero-slide-framed::before {
  content: "";
  position: absolute;
  inset: -28px;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.72), rgba(5, 4, 3, 0.36) 50%, rgba(5, 4, 3, 0.72)),
    var(--hero-slide-bg) center center / cover no-repeat;
  filter: blur(14px);
  opacity: 0.58;
  transform: scale(1.04);
}

.hero-slide-chairman {
  --hero-slide-bg: url("../images/hero-chairman-iris-jia-liu.jpg");
}

.hero-slide-awards {
  --hero-slide-bg: url("../images/carousel-02.jpg");
}

.hero-slide-gallery {
  --hero-slide-bg: url("../images/carousel-03.jpg");
}

.hero-picture-frame {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: min(calc(100% - clamp(22px, 3vw, 52px)), 1024px);
  max-width: min(calc(100% - clamp(18px, 3vw, 48px)), 1536px);
  aspect-ratio: 3 / 2;
  border: 3px solid rgba(216, 174, 75, 0.78);
  border-radius: 10px;
  outline: 1px solid rgba(255, 248, 232, 0.26);
  outline-offset: -13px;
  overflow: hidden;
  background: #050403;
  box-shadow:
    0 0 0 12px rgba(216, 174, 75, 0.08),
    0 30px 90px rgba(0, 0, 0, 0.74),
    0 0 70px rgba(216, 174, 75, 0.16),
    inset 0 0 0 1px rgba(255, 248, 232, 0.08);
}

.hero-picture-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 248, 232, 0.16);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.26), rgba(5, 4, 3, 0.02) 45%, rgba(5, 4, 3, 0.28)),
    linear-gradient(0deg, rgba(5, 4, 3, 0.2), rgba(5, 4, 3, 0.02) 45%, rgba(5, 4, 3, 0.18));
  box-shadow:
    inset 0 0 0 10px rgba(5, 4, 3, 0.22),
    inset 0 0 78px rgba(0, 0, 0, 0.48);
  pointer-events: none;
}

.hero-picture-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 13, 10, 0.94), rgba(15, 13, 10, 0.7) 45%, rgba(15, 13, 10, 0.3)),
    linear-gradient(0deg, rgba(15, 13, 10, 0.55), rgba(15, 13, 10, 0.08));
}

.hero-featured {
  min-height: 0;
  height: clamp(560px, calc(100vh - var(--header)), 1040px);
}

.hero-featured::after {
  background:
    linear-gradient(0deg, rgba(15, 13, 10, 0.34), rgba(15, 13, 10, 0.02) 44%, rgba(15, 13, 10, 0.08)),
    linear-gradient(90deg, rgba(15, 13, 10, 0.16), rgba(15, 13, 10, 0.02) 46%, rgba(15, 13, 10, 0.12));
}

.hero-featured .hero-inner {
  display: none;
  align-self: flex-end;
  width: min(560px, calc(100% - 44px));
  padding: 0 0 98px;
}

.hero-featured .hero h1,
.hero-featured h1 {
  max-width: 560px;
  font-size: clamp(2.2rem, 4.2vw, 4.6rem);
}

.hero-featured .hero-copy {
  max-width: 540px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 44px));
  margin-left: max(22px, calc((100vw - 1240px) / 2));
  padding: 88px 0;
}

.carousel-controls {
  position: absolute;
  z-index: 3;
  left: max(22px, calc((100vw - 1240px) / 2));
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.carousel-arrow,
.carousel-dots button {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
  color: #fff8e8;
}

.carousel-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 1.7rem;
  line-height: 1;
}

.carousel-dots {
  display: inline-flex;
  gap: 8px;
}

.carousel-dots button {
  width: 34px;
  height: 10px;
  padding: 0;
}

.carousel-dots button.is-active {
  background: var(--gold);
  border-color: var(--gold);
}

.hero-featured .carousel-controls {
  gap: 10px;
}

.hero-featured .carousel-dots {
  gap: 6px;
}

.hero-featured .carousel-arrow {
  width: 36px;
  height: 36px;
}

.hero-featured .carousel-dots button {
  width: 26px;
}

.hero-featured .carousel-dots button.is-active {
  width: 32px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
}

.hero h1 {
  max-width: 780px;
  font-size: 4.2rem;
  line-height: 1.03;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 248, 232, 0.78);
  font-size: 1.12rem;
  line-height: 1.85;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.page-hero {
  padding: 86px max(22px, calc((100vw - 1240px) / 2)) 56px;
  background:
    linear-gradient(120deg, rgba(15, 13, 10, 0.96), rgba(38, 23, 15, 0.92)),
    var(--ink);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 900px;
  font-size: 3.2rem;
  line-height: 1.08;
}

.page-hero p {
  max-width: 820px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-band.compact {
  margin-top: 28px;
  border: 1px solid rgba(216, 174, 75, 0.24);
}

.metric-band.compact .metric {
  min-height: 118px;
  padding: 24px;
}

.metric {
  min-height: 136px;
  padding: 30px;
  background: #15120e;
}

.metric span {
  color: var(--gold-2);
  font-size: 2rem;
  font-weight: 900;
}

.metric p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section {
  padding: 86px max(22px, calc((100vw - 1240px) / 2));
}

.section-light {
  background: var(--paper);
  color: #201910;
}

.section-dark {
  background: var(--ink);
}

.section-copper {
  background: #21170f;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section h2 {
  font-size: 2.65rem;
  line-height: 1.15;
}

.lead,
.section-heading p,
.split p,
.mission-copy p {
  color: inherit;
  font-size: 1.04rem;
  line-height: 1.85;
}

.section-dark .section-heading p,
.section-copper .section-heading p,
.section-dark .lead,
.section-copper .lead {
  color: var(--muted);
}

.section-light .lead,
.section-light .section-heading p,
.section-light .split p,
.section-light .mission-copy p {
  color: var(--muted-dark);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 54px;
  align-items: center;
}

.image-frame {
  position: relative;
}

.image-frame img,
.image-frame video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  background: rgba(15, 13, 10, 0.84);
  color: #fff8e8;
  font-size: 0.9rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill-row span,
.pill-row a {
  border: 1px solid var(--line-dark);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.58);
  color: #201910;
  font-weight: 800;
}

.pill-row a:hover {
  border-color: rgba(215, 169, 68, 0.75);
  background: #fff9ed;
  color: #15100a;
}

.section-dark .pill-row span,
.section-dark .pill-row a,
.section-copper .pill-row span,
.section-copper .pill-row a {
  border-color: rgba(215, 169, 68, 0.24);
  background: rgba(215, 169, 68, 0.1);
  color: #fff8e8;
}

.grid-3,
.grid-4,
.program-grid,
.video-grid {
  display: grid;
  gap: 16px;
}

.grid-3,
.program-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card,
.program-card,
.video-card,
.process-card,
.wallet-console,
.upload-panel,
.contact-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.section-light .card,
.section-light .program-card,
.section-light .video-card,
.section-light .process-card,
.section-light .upload-panel,
.section-light .contact-panel {
  border-color: var(--line-dark);
  background: var(--paper-2);
}

.card,
.program-card,
.process-card {
  min-height: 224px;
  padding: 24px;
}

.card h3,
.program-card h3,
.process-card h3 {
  margin-top: 20px;
  font-size: 1.24rem;
}

.card p,
.program-card p,
.process-card p,
.video-card p {
  color: var(--muted);
  line-height: 1.75;
}

.section-light .card p,
.section-light .program-card p,
.section-light .process-card p,
.section-light .video-card p {
  color: var(--muted-dark);
}

.index {
  color: var(--cyan);
  font-weight: 900;
}

.program-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 18px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--line-dark);
  padding: 18px;
  background: var(--paper-2);
}

.timeline-item strong {
  color: var(--red);
}

.timeline-item p {
  margin: 0;
  color: var(--muted-dark);
  line-height: 1.75;
}

.wallet-console {
  padding: 24px;
  box-shadow: var(--shadow);
}

.console-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.wallet-status,
.wallet-address,
.pass-card {
  margin-top: 16px;
}

.wallet-status {
  color: var(--muted);
  line-height: 1.7;
}

.wallet-address {
  border: 1px solid var(--line);
  padding: 14px;
  color: var(--cyan);
  font-family: Consolas, "SFMono-Regular", monospace;
  overflow-wrap: anywhere;
}

.pass-card {
  min-height: 146px;
  border: 1px solid rgba(215, 169, 68, 0.34);
  padding: 18px;
  background: linear-gradient(135deg, rgba(215, 169, 68, 0.2), rgba(52, 212, 198, 0.1));
}

.pass-card span,
.pass-card small {
  color: var(--muted);
}

.pass-card strong {
  display: block;
  margin: 9px 0;
  font-size: 1.45rem;
}

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

.status-grid div {
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.status-grid strong,
.status-grid span {
  display: block;
}

.status-grid strong {
  color: var(--gold-2);
}

.status-grid span {
  margin-top: 7px;
  color: var(--muted);
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: inherit;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(32, 25, 16, 0.2);
  padding: 13px;
  background: #fff;
  color: #201910;
}

textarea {
  resize: vertical;
}

input[type="file"] {
  background: #fff8ed;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(215, 169, 68, 0.72);
  outline-offset: 2px;
}

.upload-panel,
.contact-panel {
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-status {
  min-height: 26px;
  margin: 14px 0 0;
  color: var(--muted-dark);
  line-height: 1.6;
}

.upload-progress {
  height: 12px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(28, 22, 15, 0.18);
  background: rgba(15, 13, 10, 0.08);
}

.upload-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transition: width 160ms ease;
}

.video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-latest-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

body[data-page="gallery"] .video-grid,
.gallery-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.video-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
}

.video-card video,
.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050403;
}

.video-body {
  padding: 18px;
}

.video-body h3 {
  font-size: 1.1rem;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.video-meta span {
  border: 1px solid var(--line);
  padding: 6px 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.empty-state {
  border: 1px dashed var(--line);
  padding: 26px;
  color: var(--muted);
  text-align: center;
}

.empty-state-wide {
  grid-column: 1 / -1;
}

.empty-state h3 {
  margin: 0 0 10px;
  color: var(--paper);
}

.empty-state p {
  margin: 0 auto 18px;
  max-width: 680px;
}

.library-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 0.7fr)) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  padding: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.library-toolbar label {
  color: var(--muted);
}

.work-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #080604;
}

body[data-page="gallery"] .work-poster,
.gallery-grid .work-poster {
  aspect-ratio: 4 / 5;
}

.home-latest-grid .work-poster {
  aspect-ratio: 4 / 5;
}

.work-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.video-card:hover .work-poster img {
  transform: scale(1.035);
}

.work-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(215, 169, 68, 0.16), rgba(52, 212, 198, 0.1)),
    #100d09;
}

.status-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 8px;
  background: rgba(15, 13, 10, 0.78);
  color: #fff8e8;
  font-size: 0.76rem;
  font-weight: 900;
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(215, 169, 68, 0.88);
  color: #15100a;
  font-weight: 900;
}

.video-card {
  cursor: pointer;
}

.video-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.video-card:focus-within,
.video-card:hover {
  border-color: rgba(215, 169, 68, 0.55);
}

.video-body h3 {
  line-height: 1.45;
}

body[data-page="gallery"] .video-body,
.gallery-grid .video-body {
  padding: 13px 14px 15px;
}

.home-latest-grid .video-body {
  padding: 13px 14px 15px;
}

body[data-page="gallery"] .video-body h3,
.gallery-grid .video-body h3,
.home-latest-grid .video-body h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

body[data-page="gallery"] .video-body p,
.gallery-grid .video-body p,
.home-latest-grid .work-card-summary {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 0.82rem;
  line-height: 1.55;
}

body[data-page="gallery"] .work-card-summary,
.gallery-grid .work-card-summary {
  display: none;
}

body[data-page="gallery"] .video-meta,
.gallery-grid .video-meta,
.home-latest-grid .video-meta {
  gap: 6px;
  margin: 9px 0;
}

body[data-page="gallery"] .video-meta span,
.gallery-grid .video-meta span,
.home-latest-grid .video-meta span {
  padding: 4px 6px;
  font-size: 0.68rem;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

body[data-page="gallery"] .video-tags,
.gallery-grid .video-tags,
.home-latest-grid .video-tags {
  gap: 5px;
  margin-top: 10px;
}

.video-tags span {
  border: 1px solid var(--line);
  padding: 5px 7px;
  color: var(--muted);
  font-size: 0.74rem;
}

body[data-page="gallery"] .video-tags span,
.gallery-grid .video-tags span,
.home-latest-grid .video-tags span {
  padding: 4px 6px;
  font-size: 0.66rem;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.card-action {
  border: 1px solid var(--line);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8e8;
  font-weight: 800;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.pagination button,
.pagination span {
  border: 1px solid var(--line);
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8e8;
}

.pagination button.is-active {
  background: var(--gold);
  color: #15100a;
}

.manager-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.manager-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  max-height: 760px;
  overflow: auto;
  padding-right: 6px;
}

.manager-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line-dark);
  padding: 10px;
  background: rgba(15, 13, 10, 0.04);
  cursor: pointer;
}

.manager-item.is-active,
.manager-item:hover {
  border-color: rgba(215, 169, 68, 0.62);
  background: rgba(215, 169, 68, 0.08);
}

.manager-item img {
  width: 82px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #0f0d0a;
}

.manager-item h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.manager-item p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.82rem;
  line-height: 1.45;
}

.manager-editor {
  position: sticky;
  top: calc(var(--header) + 18px);
}

.gallery-manager {
  border-top: 1px solid var(--line-dark);
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.media-modal.is-open {
  display: flex;
}

body.modal-open {
  overflow: hidden;
}

.media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.media-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  border: 1px solid var(--line);
  background: #11100d;
  box-shadow: var(--shadow);
}

.media-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.58);
  color: #fff8e8;
  font-size: 1.6rem;
}

.js-media-player video,
.js-media-player iframe,
.js-media-player img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: contain;
  background: #050403;
}

.media-modal-body {
  padding: 22px;
}

.media-modal-body h2 {
  font-size: 1.8rem;
}

.media-modal-body p {
  color: var(--muted);
  line-height: 1.75;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.doc-links a {
  border: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--muted);
}

.doc-links .link-button {
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: transparent;
  color: var(--muted);
}

.doc-links a:hover,
.doc-links .link-button:hover {
  border-color: rgba(215, 169, 68, 0.7);
  color: #fff8e8;
}

.doc-links .danger-link {
  border-color: rgba(213, 67, 58, 0.45);
  color: #ffb8b2;
}

.doc-links .danger-link:hover {
  border-color: rgba(213, 67, 58, 0.82);
  color: #fff8e8;
}

.section-light .doc-links a {
  border-color: var(--line-dark);
  color: var(--muted-dark);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px max(22px, calc((100vw - 1240px) / 2));
  border-top: 1px solid var(--line);
  background: #0b0907;
  color: var(--muted);
}

.site-footer strong {
  color: var(--gold-2);
}

.site-footer p {
  margin: 8px 0 0;
}

.site-footer a {
  color: var(--gold);
}

.site-footer-expanded {
  align-items: flex-start;
}

.footer-brand {
  max-width: 360px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 28px;
  width: min(720px, 100%);
}

.footer-columns h3 {
  margin: 0 0 10px;
  color: var(--gold-2);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.footer-columns p {
  margin: 0 0 8px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
  gap: 28px;
  align-items: start;
}

.contact-info-card,
.contact-form-card {
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.72);
  padding: clamp(22px, 3vw, 34px);
}

.contact-info-card h2,
.contact-form-card h2 {
  margin-top: 0;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.contact-list div {
  border-top: 1px solid rgba(26, 22, 17, 0.14);
  padding-top: 12px;
}

.contact-list dt {
  margin-bottom: 4px;
  color: var(--muted-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  color: var(--charcoal);
}

.contact-form-table {
  width: 100%;
  border-collapse: collapse;
}

.contact-form-table th,
.contact-form-table td {
  border-top: 1px solid rgba(26, 22, 17, 0.14);
  padding: 14px 0;
  text-align: left;
  vertical-align: top;
}

.contact-form-table th {
  width: 150px;
  padding-right: 18px;
  color: var(--muted-dark);
  font-size: 0.88rem;
}

.contact-form-table input,
.contact-form-table select,
.contact-form-table textarea {
  width: 100%;
  border: 1px solid rgba(26, 22, 17, 0.2);
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 13px;
  color: var(--charcoal);
  font: inherit;
}

.form-alert {
  border: 1px solid rgba(26, 22, 17, 0.18);
  margin: 0 0 18px;
  padding: 12px 14px;
}

.form-alert.is-success {
  border-color: rgba(42, 120, 84, 0.34);
  background: rgba(42, 120, 84, 0.1);
}

.form-alert.is-error {
  border-color: rgba(150, 54, 45, 0.34);
  background: rgba(150, 54, 45, 0.1);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

@media (max-width: 1080px) {
  .brand {
    min-width: 236px;
  }

  .site-nav {
    gap: 12px;
  }

  .hero h1 {
    font-size: 3.45rem;
  }

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

  .home-latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="gallery"] .video-grid,
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .manager-editor {
    position: static;
  }
}

@media (max-width: 900px) {
  :root {
    --header: 70px;
  }

  .site-header {
    justify-content: space-between;
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    max-width: 190px;
    font-size: 0.78rem;
  }

  .brand span {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 22px 24px;
    background: rgba(15, 13, 10, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-header[data-state="open"] .site-nav {
    display: flex;
  }

  .site-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
  }

  .wallet-mini {
    width: 42px;
    min-width: 42px;
    padding: 0;
    justify-content: center;
  }

  .wallet-mini span:last-child {
    display: none;
  }

  .hero {
    min-height: calc(84vh - var(--header));
  }

  .hero-featured {
    min-height: 0;
    height: clamp(460px, 74vw, 680px);
  }

  .hero-picture-frame {
    width: min(calc(100% - 28px), 1536px);
    height: auto;
  }

  .hero-inner {
    width: min(100% - 36px, 760px);
    margin-left: 18px;
    padding-bottom: 104px;
  }

  .hero-featured .hero-inner {
    width: min(100% - 36px, 560px);
    padding-bottom: 86px;
  }

  .hero-featured .hero-copy {
    display: none;
  }

  .hero h1 {
    font-size: 2.72rem;
  }

  .carousel-controls {
    left: 18px;
    bottom: 24px;
  }

  .metric-band,
  .grid-3,
  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="gallery"] .video-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .page-hero h1,
  .section h2 {
    font-size: 2.24rem;
  }
}

@media (max-width: 620px) {
  .brand strong {
    max-width: 150px;
  }

  .hero h1 {
    font-size: 2.18rem;
  }

  .hero-featured h1 {
    font-size: 1.86rem;
  }

  .hero-featured {
    min-height: 0;
    height: clamp(340px, 78vw, 470px);
  }

  .hero-slide-framed {
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 74px;
  }

  .hero-picture-frame {
    width: min(calc(100% - 10px), 1536px);
    border-width: 2px;
    outline-offset: -8px;
  }

  .hero-picture-frame::after {
    inset: 8px;
  }

  .hero-featured .carousel-controls {
    bottom: 10px;
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
  }

  .carousel-dots button {
    width: 28px;
  }

  .hero-actions .btn,
  .inline-actions .btn,
  .upload-panel .btn,
  .wallet-console .btn {
    width: 100%;
  }

  .metric-band,
  .grid-3,
  .grid-4,
  .program-grid,
  .video-grid,
  .form-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="gallery"] .video-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 112px;
    padding: 24px;
  }

  .section,
  .page-hero {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form-table,
  .contact-form-table tbody,
  .contact-form-table tr,
  .contact-form-table th,
  .contact-form-table td {
    display: block;
    width: 100%;
  }

  .contact-form-table th {
    padding: 14px 0 4px;
  }

  .contact-form-table td {
    padding: 0 0 14px;
  }

  .library-toolbar {
    grid-template-columns: 1fr;
  }

  .media-modal {
    padding: 12px;
  }

  .manager-item {
    grid-template-columns: 70px 1fr;
  }

  .manager-item img {
    width: 70px;
  }
}
