:root {
  --bg: #0b0d12;
  --bg-soft: #11141c;
  --panel: #151927;
  --line: #252b3d;
  --text: #f3f5fb;
  --muted: #a6aec4;
  --accent: #7c90ff;
  --accent-soft: rgba(124, 144, 255, 0.15);
  --radius: 16px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% -10%, #1b2040 0%, var(--bg) 45%);
  line-height: 1.6;
}

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

.site-wrap {
  min-height: 100vh;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  background: rgba(11, 13, 18, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

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

.pill {
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: all 0.25s ease;
}

.pill:hover,
.pill.active {
  border-color: rgba(124, 144, 255, 0.8);
  background: var(--accent-soft);
  color: var(--text);
}

.hero {
  padding: 84px 0 64px;
}

.hero-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(26px, 4vw, 52px);
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 15ch;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.hero-text {
  max-width: 65ch;
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-weight: 520;
  transition: transform 0.2s ease, border-color 0.25s ease;
}

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

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b1027;
}

.btn.secondary:hover {
  border-color: rgba(124, 144, 255, 0.9);
}

.section {
  padding: 26px 0 80px;
}

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

.card {
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.card p {
  font-size: 0.95rem;
  margin: 0;
}

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  background: linear-gradient(165deg, #121726 0%, #0f121b 100%);
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.timeline-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.01);
}

.timeline-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.timeline-item p {
  margin: 0;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0 34px;
}

.footer p {
  margin: 0;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .card {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 62px;
  }

  .card {
    grid-column: span 12;
  }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

.home-look {
  background:
    radial-gradient(circle at 50% 48%, rgba(110, 0, 10, 0.5), rgba(15, 0, 3, 0.05) 36%),
    #000;
}

.home-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.home-content {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 0 40px;
}

.home-title {
  text-decoration: underline;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 42px;
}

.home-copy {
  color: #f1f3f8;
  font-size: clamp(1rem, 1.7vw, 1.26rem);
  line-height: 1.7;
  margin-bottom: 14px;
}

.home-copy-small {
  margin-top: 18px;
}

.home-cta {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-btn {
  border-color: #ffffff;
  color: #ffffff;
  font-size: 1.02rem;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
}

.home-btn:hover {
  border-color: #d8d8d8;
  background: rgba(255, 255, 255, 0.1);
}

.video-placeholder {
  margin-top: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.26);
}

.video-placeholder h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.video-placeholder p {
  margin: 0 0 14px;
}

.placeholder-tag {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: #d9deeb;
}

.glossary-list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}

.glossary-list li {
  color: #edf0fa;
}

.glossary-list strong {
  color: #ffffff;
}

.home-look {
  background: #040102;
  color: #ffd9df;
}

.home-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 160px 1fr;
  transition: grid-template-columns 0.25s ease;
}

.home-layout.sidebar-collapsed {
  grid-template-columns: 0 1fr;
}

.home-sidebar {
  background: #080203;
  border-right: 1px solid #4a111a;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  transition: opacity 0.2s ease, padding 0.2s ease, border-color 0.2s ease;
}

.home-layout.sidebar-collapsed .home-sidebar {
  opacity: 0;
  pointer-events: none;
  padding: 0;
  border-right: 0;
}

.home-sidebar a {
  font-size: 0.74rem;
  color: #ff9eae;
  text-align: center;
}

.home-sidebar a:hover {
  text-decoration: underline;
}

.home-main {
  display: flex;
  flex-direction: column;
}

.home-topbar {
  min-height: 120px;
  background: linear-gradient(90deg, #22050a, #3f0b14 50%, #5e101e);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.sidebar-toggle {
  border: 1px solid #7f2a39;
  background: rgba(22, 4, 8, 0.82);
  color: #ffc8d1;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.sidebar-toggle:hover {
  background: rgba(47, 8, 15, 0.9);
}

.home-content-v2 {
  width: min(92%, 980px);
  margin: 28px auto 56px;
}

.home-about {
  border: 1px solid #5d1824;
  background: #0b0405;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.home-about h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: #ffd5dc;
}

.home-about p {
  margin: 0;
  color: #e6a3af;
  font-size: 0.92rem;
}

.home-title-v2 {
  max-width: none;
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 2.9rem);
  text-align: center;
  color: #ffd4db;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

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

.work-card {
  border: 1px solid #611c28;
  background: #0b0405;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.work-media {
  min-height: 150px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(150deg, #2d070f, #5b1320);
  color: #ffe9ed;
}

.work-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-date {
  margin: 0 0 4px;
  color: #d07a88;
  font-size: 0.72rem;
}

.work-body h2 {
  margin: 0 0 8px;
  color: #ffd6dd;
  font-size: 1.22rem;
}

.work-body p {
  color: #df9aa7;
  font-size: 0.88rem;
  margin: 0 0 10px;
}

.work-body > p:not(.work-date) {
  flex: 1;
}

.work-link {
  display: inline-block;
  font-size: 0.8rem;
  color: #ff6e87;
  font-weight: 600;
}

.work-link:hover {
  text-decoration: underline;
}

.work-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.work-preview-btn {
  border: 1px solid #8f394a;
  background: rgba(71, 17, 27, 0.3);
  color: #ffd1d8;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.work-preview-btn:hover {
  background: rgba(116, 28, 43, 0.45);
}

.chess-button {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  border: 1px solid #8f394a;
  background: rgba(64, 14, 23, 0.92);
  color: #ffd0d9;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
}

.chess-button:hover {
  background: rgba(95, 20, 34, 0.95);
}

.project-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: grid;
  place-items: center;
  z-index: 999;
  padding: 20px;
}

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

.project-modal-card {
  width: min(100%, 560px);
  border: 1px solid #6a1f2d;
  background: #130608;
  border-radius: 12px;
  padding: 22px;
  position: relative;
}

.project-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid #7e2a39;
  background: rgba(53, 12, 20, 0.8);
  color: #ffc4cf;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.project-modal-label {
  margin: 0 0 6px;
  color: #db8798;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-modal-card h2 {
  margin: 0 0 12px;
  color: #ffd8df;
}

.project-modal-card p {
  color: #e0a0ad;
}

.home-bottom-link {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.home-reflections-btn {
  border: 1px solid #8f394a;
  background: rgba(71, 17, 27, 0.32);
  color: #ffd3da;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
}

.home-reflections-btn:hover {
  background: rgba(116, 28, 43, 0.45);
}

.download-lock {
  margin-top: 24px;
  border: 1px solid #612030;
  border-radius: 12px;
  background: rgba(26, 8, 12, 0.5);
  padding: 16px;
}

.download-lock h3 {
  margin: 0 0 8px;
}

.download-lock p {
  margin: 0 0 12px;
}

.download-lock-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.download-lock input {
  min-width: 220px;
  flex: 1;
  border: 1px solid #7f2a39;
  border-radius: 8px;
  padding: 9px 10px;
  background: #12070a;
  color: #ffdbe1;
}

.download-lock button {
  border: 1px solid #7f2a39;
  border-radius: 8px;
  background: rgba(64, 14, 23, 0.8);
  color: #ffd0d9;
  padding: 9px 12px;
  font-weight: 600;
  cursor: pointer;
}

.download-lock button:hover {
  background: rgba(95, 20, 34, 0.9);
}

.download-lock-status {
  margin-top: 10px;
  margin-bottom: 0;
  color: #ffadb9;
  font-size: 0.9rem;
}

.mood-board-section {
  margin-top: 24px;
  border: 1px solid #612030;
  border-radius: 12px;
  padding: 16px;
  background: rgba(26, 8, 12, 0.45);
}

.mood-board-section h3 {
  margin: 0 0 10px;
}

.mood-board-section p {
  margin: 0 0 12px;
}

.mood-board-image {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #7f2a39;
  display: block;
}

.shotlist-image {
  width: min(70%, 760px);
  margin: 0 auto;
  transition: width 0.25s ease;
}

.shotlist-image.shotlist-image-expanded {
  width: 100%;
}

.shotlist-toggle {
  margin-top: 12px;
  border: 1px solid #7f2a39;
  border-radius: 8px;
  background: rgba(64, 14, 23, 0.8);
  color: #ffd0d9;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.shotlist-toggle:hover {
  background: rgba(95, 20, 34, 0.9);
}

.asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.asset-card {
  border: 1px solid #6f2636;
  border-radius: 10px;
  padding: 12px;
  background: rgba(20, 7, 11, 0.55);
}

.asset-card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.asset-preview-image {
  width: min(72%, 680px);
  margin: 0 auto;
  transition: width 0.25s ease;
}

.asset-explanations {
  margin-top: 14px;
}

.asset-explanations p:last-child {
  margin-bottom: 0;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 20px;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 88vh;
  border: 1px solid #7f2a39;
  border-radius: 10px;
  display: block;
}

.image-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid #7f2a39;
  border-radius: 8px;
  background: rgba(64, 14, 23, 0.88);
  color: #ffd0d9;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-weight: 700;
}

.image-lightbox-close:hover {
  background: rgba(95, 20, 34, 0.92);
}

.storyboard-gallery {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.storyboard-gallery img {
  width: min(82vw, 430px);
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid #7f2a39;
  cursor: pointer;
  display: block;
  scroll-snap-align: start;
}

.journal-section > p {
  margin-bottom: 16px;
}

.journal-entry {
  border: 1px solid #6b2535;
  border-radius: 10px;
  padding: 14px;
  background: rgba(18, 6, 9, 0.55);
  margin-top: 12px;
}

.journal-entry h4 {
  margin: 0 0 10px;
  color: #ffd5dc;
  font-size: 1.02rem;
}

.journal-entry p {
  margin: 0 0 10px;
}

.journal-entry p:last-child {
  margin-bottom: 0;
}

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

  .home-sidebar {
    border-right: 0;
    border-bottom: 1px solid #4a111a;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
    padding: 14px;
  }

  .home-layout.sidebar-collapsed .home-sidebar {
    max-height: 0;
    border-bottom: 0;
    padding: 0;
  }

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

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

}

@media (max-width: 640px) {
  .home-topbar {
    min-height: 86px;
  }

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

}
