@font-face {
  font-family: Manrope;
  src: url("manrope.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #f1efe7;
  --muted: #b9b9ae;
  --background: #171814;
  --surface: #21231b;
  --line: #393b30;
  --accent: #e2f399;
  font: 16px/1.5 Manrope, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 112px, 1320px); margin-inline: auto; }
.site-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; gap: 26px; color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; }
.brand-mark { color: var(--accent); font-size: 1.65rem; line-height: 1; }
.hero { padding-top: clamp(48px, 7vw, 102px); padding-bottom: 54px; }
.hero-heading, .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 26px; }
.hero-heading { margin-bottom: 38px; }
.eyebrow { margin: 0 0 15px; font-size: .92rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.hero h1 { margin: 0; font-size: clamp(3rem, 10.2vw, 9.8rem); font-weight: 750; line-height: .9; letter-spacing: -.092em; overflow-wrap: anywhere; }
.hero h1 span { color: var(--accent); }
.button { display: inline-flex; justify-content: center; align-items: center; padding: 12px 20px; min-height: 46px; border: 1px solid transparent; border-radius: 6px; font-size: .94rem; font-weight: 650; white-space: nowrap; }
.primary { background: var(--accent); color: #1d2111; }
.primary:hover { color: #1d2111; background: #f0ffb4; }
.secondary { background: transparent; border-color: #626653; }
.secondary:hover { color: var(--accent); border-color: var(--accent); }
.hero-image, .tile { display: block; width: 100%; padding: 0; border: 0; position: relative; overflow: hidden; background: #292e20; }
.hero-image { height: clamp(300px, 40vw, 610px); border-radius: 9px; }
.hero-image img, .tile img, .tile video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.hero-image:hover img, .tile:hover img { transform: scale(1.035); }
.hero-caption { position: absolute; left: 20px; bottom: 20px; background: #1a1a15e8; color: #fff; border-radius: 4px; padding: 7px 12px; font-size: .88rem; }
.hero-caption span { color: #c7c6ba; }
.gallery { border-block: 1px solid var(--line); background: #1c1e17; padding: 52px 0 66px; scroll-margin-top: 18px; }
.section-heading { margin-bottom: 28px; }
h2, h3 { margin: 0; }
.section-heading h2 { font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.07em; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 8px 14px; border-radius: 100px; }
.filters button[aria-pressed="true"] { color: #242918; background: var(--accent); border-color: var(--accent); }
.filters button:hover { border-color: var(--accent); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 18px; }
.tile { aspect-ratio: 4/3; border-radius: 7px; }
.play { position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; padding-left: 3px; width: 54px; aspect-ratio: 1; border-radius: 50%; background: #e2f399; color: #1e2214; }
.work-label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; padding-top: 10px; }
.work-label h3 { font-size: 1.05rem; overflow-wrap: anywhere; }
.work-label > span, .empty, .help, .footer-bottom { color: var(--muted); }
.work-label > span, .footer-bottom { font-size: .88rem; }
.site-footer { padding-block: 30px; }
.contact { display: inline-block; font-size: clamp(1.5rem, 5vw, 3.5rem); overflow-wrap: anywhere; margin-bottom: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; }
dialog { width: min(900px, calc(100% - 28px)); max-height: 92vh; padding: 16px; background: var(--background); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; }
dialog::backdrop { background: #000c; }
.close { display: block; margin: 0 0 10px auto; width: 42px; height: 42px; border: 1px solid #626653; border-radius: 50%; background: var(--surface); font-size: 1.5rem; line-height: 1; }
.dialog-content img, .dialog-content video { display: block; width: 100%; max-height: 62vh; object-fit: contain; }
.dialog-content iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.dialog-content h2 { margin-top: 14px; }
.dialog-content p { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.admin-main { padding-block: 46px; width: min(100% - 112px, 1120px); }
.admin-main h1 { margin: 0 0 24px; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.06em; }
.admin-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.panel { background: var(--surface); padding: clamp(16px, 3vw, 27px); border: 1px solid var(--line); border-radius: 9px; min-width: 0; }
.panel h2 { margin-bottom: 20px; font-size: 1.35rem; }
.fields { display: grid; gap: 15px; }
.fields > .button { justify-self: start; }
.fields label { display: grid; gap: 6px; min-width: 0; font-weight: 600; }
.fields label.check { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.fields input:not([type=checkbox]), .fields textarea, .fields select { padding: 9px 11px; min-height: 43px; width: 100%; border: 1px solid #535643; border-radius: 5px; background: #171914; }
.fields textarea { resize: vertical; }
.fields input[type=file] { overflow: hidden; padding: 8px; font-size: .9rem; }
.fields input::file-selector-button { margin-right: 10px; color: var(--ink); background: #343829; border: 0; padding: 4px 8px; border-radius: 3px; }
.fields input[type=checkbox] { accent-color: var(--accent); width: 17px; height: 17px; }
.form-row { display: grid; grid-template-columns: 1fr minmax(140px, .7fr); gap: 12px; }
.help { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
.list-panel { margin-block: 22px; }
.admin-work { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.delete { background: transparent; border-color: #a26058; color: #ffc2b8; }
.delete:hover { background: #482420; }
.notice { padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface); }
.notice.error { border-color: #fab0a0; color: #ffc2b8; }
.narrow { max-width: 580px; }
.back { display: inline-block; color: var(--accent); margin-bottom: 16px; }
@media (max-width: 800px) {
  .wrap, .admin-main { width: calc(100% - 40px); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 550px) {
  .wrap, .admin-main { width: calc(100% - 32px); }
  .site-header { min-height: 63px; }
  .site-header nav { gap: 12px; font-size: .88rem; }
  .hero-heading, .section-heading { align-items: start; flex-direction: column; }
  .hero-heading { margin-bottom: 24px; }
  .hero { padding-bottom: 34px; }
  .hero h1 { letter-spacing: -.075em; }
  .hero-image { height: 330px; }
  .gallery { padding-block: 36px; }
  .work-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .admin-work { grid-template-columns: auto 1fr; }
  .admin-work > div { grid-column: 1/-1; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
