:root {
  --bg: #0f1115;
  --panel: #161a22;
  --panel-2: #121620;
  --text: #e7eaf0;
  --muted: #a7afbf;
  --border: rgba(231, 234, 240, 0.12);
  --shadow: rgba(0, 0, 0, 0.55);
  --accent: #ff3b30;
  --accent-2: #ff6a3d;
  --radius: 14px;
  --maxw: 980px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  line-height: 1.45;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

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

.link {
  color: var(--accent-2);
  border-bottom: 1px solid rgba(255, 106, 61, 0.35);
}

.link:hover {
  border-bottom-color: rgba(255, 106, 61, 0.7);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(10, 12, 16, 0.9);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand__name {
  font-weight: 650;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 18px 54px;
}

.hero {
  padding: 18px 0 22px;
}

.hero__title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: 0.2px;
}

.hero__subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  margin-top: 30px;
  padding-top: 4px;
}

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

.section__title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.section__hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  display: block;
  background: linear-gradient(180deg, rgba(22, 26, 34, 0.7), rgba(18, 22, 32, 0.7));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px var(--shadow);
  cursor: pointer;
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #0b0d12;
}

.card__meta {
  padding: 10px 12px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.card__title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(231, 234, 240, 0.92);
}

.card__tag {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.btn {
  appearance: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(22, 26, 34, 0.55);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.btn:hover {
  border-color: rgba(231, 234, 240, 0.22);
}

.btn--primary {
  border-color: rgba(255, 59, 48, 0.55);
  background: linear-gradient(180deg, rgba(255, 59, 48, 0.25), rgba(255, 59, 48, 0.12));
}

.btn--primary:hover {
  border-color: rgba(255, 59, 48, 0.8);
}

.btn--ghost {
  background: transparent;
}

.embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(22, 26, 34, 0.5);
  box-shadow: 0 18px 50px var(--shadow);
}

.embed__iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

.empty {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed rgba(231, 234, 240, 0.18);
  padding: 12px;
  border-radius: var(--radius);
}

.footer {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.footer__dot {
  opacity: 0.6;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 50;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.modal__panel {
  position: relative;
  width: min(960px, 100%);
  max-height: min(86vh, 820px);
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(231, 234, 240, 0.18);
  background: linear-gradient(180deg, rgba(22, 26, 34, 0.95), rgba(18, 22, 32, 0.95));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
}

.modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(231, 234, 240, 0.12);
}

.modal__title {
  font-size: 13px;
  font-weight: 650;
  color: rgba(231, 234, 240, 0.9);
}

.modal__title:empty {
  display: none;
}

.modal__body {
  padding: 14px;
  overflow: auto;
}

.lightbox__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(231, 234, 240, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.lightbox__notes {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* Video modal */
.video__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(231, 234, 240, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.video__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Contact form */
.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-size: 12px;
  color: rgba(231, 234, 240, 0.85);
}

.field__input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(231, 234, 240, 0.14);
  background: rgba(10, 12, 16, 0.55);
  color: var(--text);
  outline: none;
}

.field__input:focus {
  border-color: rgba(255, 106, 61, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.12);
}

.field__input--area {
  resize: vertical;
}

.field--honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form__status {
  font-size: 13px;
  color: var(--muted);
}

.fineprint {
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(167, 175, 191, 0.95);
}
