:root {
  --bg: #07080d;
  --bg-soft: #10131d;
  --bg-card: #151927;
  --text: #f5f7fb;
  --muted: #a9b1c6;
  --line: rgba(255,255,255,.12);
  --accent: #e50914;
  --accent-2: #2f6bff;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(47,107,255,.22), transparent 35%),
              radial-gradient(circle at top right, rgba(229,9,20,.16), transparent 30%),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(7,8,13,.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(145deg, #f00616, #8f0710);
  color: #fff;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -2px;
  box-shadow: 0 14px 30px rgba(229,9,20,.3);
}
.brand small { display: block; color: var(--muted); font-size: 12px; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255,255,255,.08);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 20px;
}

.hero {
  padding: clamp(70px, 10vw, 130px) clamp(18px, 4vw, 54px);
  min-height: 62vh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7,8,13,.98), rgba(7,8,13,.72), rgba(7,8,13,.93)),
    url("../images/projects/demo-wedding.svg") center / cover;
  border-bottom: 1px solid var(--line);
}

.hero .eyebrow,
.eyebrow {
  color: #ffb4b8;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
}

.hero h1,
.page-hero h1 {
  margin: 10px 0 20px;
  max-width: 900px;
  font-size: clamp(42px, 8vw, 92px);
  line-height: .92;
  letter-spacing: -0.07em;
}

.hero p,
.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
}

.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: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-weight: 800;
}
.button.primary { background: var(--accent); border-color: var(--accent); }
.button.blue { background: var(--accent-2); border-color: var(--accent-2); }
.button:hover { transform: translateY(-1px); }

.section {
  padding: clamp(42px, 6vw, 76px) clamp(18px, 4vw, 54px);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}
.section-header h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: -0.045em;
}
.section-header p { margin: 0; color: var(--muted); max-width: 620px; }

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

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-content { padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.025em; }
.card p { margin: 0; color: var(--muted); }

.page-hero {
  padding: 70px clamp(18px, 4vw, 54px) 36px;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.breadcrumbs a { color: var(--text); }

.motflix-shell {
  min-height: 100vh;
  background: #06070b;
}

.motflix-top {
  padding: 44px clamp(18px, 4vw, 54px) 26px;
  background:
    linear-gradient(180deg, rgba(6,7,11,.52), #06070b 90%),
    radial-gradient(circle at top left, rgba(229,9,20,.42), transparent 35%),
    radial-gradient(circle at top right, rgba(47,107,255,.32), transparent 35%);
}

.motflix-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}
.motflix-title h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 88px);
  line-height: .9;
  letter-spacing: -0.075em;
}
.motflix-title p { color: var(--muted); max-width: 620px; }

.search-bar {
  position: relative;
  max-width: 980px;
}
.search-bar input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  color: #0b0d13;
  padding: 0 18px 0 48px;
  font-size: 16px;
  outline: none;
}
.search-bar span {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: #0b0d13;
}

.project-grid {
  padding: 24px clamp(18px, 4vw, 54px) 76px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 310px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.38);
  transition: transform .18s ease, border-color .18s ease;
}
.project-card:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(255,255,255,.3);
}
.project-card img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}
.project-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 56px 14px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.92));
}
.project-overlay h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.76);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 12px;
  font-weight: 800;
}
.locked { color: #ffd166; }

.project-hero {
  padding: clamp(90px, 12vw, 150px) clamp(18px, 4vw, 54px) 38px;
  background: linear-gradient(90deg, #06070b 15%, rgba(6,7,11,.70), #06070b 95%);
  border-bottom: 1px solid var(--line);
}
.project-hero h1 {
  max-width: 850px;
  margin: 8px 0 14px;
  font-size: clamp(42px, 8vw, 88px);
  line-height: .9;
  letter-spacing: -0.075em;
}
.project-hero p { max-width: 780px; color: var(--muted); font-size: 18px; }

.access-box {
  max-width: 520px;
  margin: 70px auto;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}
.access-box input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  color: #0b0d13;
  padding: 0 14px;
  margin: 10px 0 14px;
}
.error { color: #ff858b; }

.media-block {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 24px;
  align-items: start;
}
.video-box, .download-list, .album-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  padding: 18px;
}
.video-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #000;
}
.download-list ul { margin: 0; padding-left: 18px; color: var(--muted); }
.download-list li { margin: 8px 0; }
.album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.album-grid a {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.album-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.notice {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  background: #05060a;
  color: var(--muted);
}
.site-footer strong { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 1100px) {
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .media-block { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 78px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 16px;
    background: #10131d;
    border: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .brand small { display: none; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card, .project-card img { min-height: 240px; }
  .grid, .album-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
