:root {
  --accent: #23b6ff;
  --accent-dark: #0095d6;
  --text: #505259;
  --heading: #2b2e33;
  --line: #e6e8ec;
  --soft: #f5f7f9;
  --header: #242830;
  --footer: #1a1a1a;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font: 16px/1.55 "Segoe UI", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }
button, input { font: inherit; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  border-bottom: 1px solid #1b1e24;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 86px;
}
.logo img { height: 64px; width: auto; max-width: none; display: block; }
.menu { display: flex; gap: 4px; flex: 1; }
.menu a {
  color: #e8eaee;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
}
.menu a.on, .menu a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.social { display: flex; gap: 8px; align-items: center; }
.social a { display: flex; align-items: center; flex: 0 0 auto; }
.social img { height: 18px; width: auto; max-width: none; object-fit: contain; display: block; opacity: 0.85; }
.social a:hover img { opacity: 1; }
.lang { display: flex; gap: 6px; font-size: 13px; font-weight: 700; }
.lang a { color: #b7bdc6; }
.lang a.on { color: var(--accent); }
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; height: 2px; width: 20px; background: #fff; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.hero { position: relative; background: #111; color: #fff; overflow: hidden; min-height: 640px; }
.hero-media, .cover-media {
  position: absolute;
  left: 0;
  right: 0;
  top: -80px;
  height: calc(100% + 160px);
  background: #15171a center/cover no-repeat;
  will-change: transform;
}
#snow { position: absolute; inset: 0; pointer-events: none; }
#snow canvas { display: block; pointer-events: none; }
.hero-copy {
  position: relative;
  z-index: 1;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}
.hero-copy .wrap { margin-bottom: 72px; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); pointer-events: none; }
.hero-copy h2 { margin: 0 0 8px; font-size: 40px; letter-spacing: 0.02em; line-height: 1.15; }
.hero-copy p { margin: 0; font-size: 18px; max-width: 640px; }
.hero-btn {
  pointer-events: auto;
  display: inline-block;
  margin-top: 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 12px 22px;
  border-radius: 2px;
}
.hero-btn:hover { background: var(--accent-dark); color: #fff; }

.page-cover {
  position: relative;
  min-height: 320px;
  background: #15171a;
  color: #fff;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.2));
}
.page-cover-inner { position: relative; z-index: 1; margin-bottom: 28px; }
.page-cover h1 {
  margin: 0 0 36px;
  color: #fff;
  font-size: 40px;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  color: #8b919a;
  font-size: 13px;
}
.crumbs a { color: var(--accent-dark); }
.crumbs .sep { opacity: 0.7; }
.page-cover .crumbs { margin: 0; color: #fff; }
.page-cover .crumbs a { color: #fff; }
.page-cover .crumbs a:hover { color: var(--accent); }
.section-lead { max-width: 720px; margin: 0 auto 22px; text-align: center; }

.section { padding: 42px 0; }
.section-title {
  margin: 0 0 22px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--heading);
}
.section-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: 10px auto 0;
  background: var(--accent);
}
.about { max-width: 760px; margin: 0 auto; text-align: center; }

.reel { position: relative; }
.reel-viewport { overflow: hidden; }
.reel-track { display: flex; gap: 18px; transition: transform 0.35s ease; will-change: transform; }
.reel-track .card { flex: 0 0 calc((100% - 18px) / 2); }
.reel .thumb { aspect-ratio: 624 / 350; background: #101216; }
.reel .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.reel .edge, .gallery-frame .edge, .lightbox .edge { opacity: 0; }
.reel:hover .edge, .gallery-frame:hover .edge, .lightbox:hover .edge { opacity: 1; }
@media (hover: none) {
  .reel .edge, .gallery-frame .edge, .lightbox .edge { opacity: 1; }
}
.reel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.reel-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: #c5cad1; cursor: pointer;
}
.reel-dots button.on { background: var(--accent); }

.edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  z-index: 2;
}
.edge.prev { left: 0; }
.edge.next { right: 0; }
.edge span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  font-size: 28px;
  line-height: 1;
}
.edge:hover { background: rgba(255, 255, 255, 0.16); }
.edge[hidden] { display: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card {
  display: flex;
  flex-direction: column;
  color: var(--heading);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  min-height: 100%;
}
.card[hidden] { display: none !important; }
.card:hover { color: var(--accent-dark); border-color: #b7e7ff; box-shadow: 0 8px 24px rgba(35, 182, 255, 0.12); }
.thumb { position: relative; aspect-ratio: 16/10; background: var(--soft); }
.asset-cards .thumb { aspect-ratio: 624 / 350; }
.thumb > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-cards .thumb > img, .reel .thumb > img { object-fit: contain; }
.thumb img.badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  top: auto;
  left: auto;
  width: 54px;
  height: auto;
  max-width: 22%;
  max-height: none;
  object-fit: contain;
  pointer-events: none;
}
.card-body { padding: 12px 14px 14px; }
.card-title { display: block; font-weight: 700; }
.card-meta { display: block; margin-top: 4px; color: #8b919a; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.excerpt { margin: 8px 0 0; color: var(--text); font-size: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.filters button {
  border: 0;
  background: var(--soft);
  color: var(--heading);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 700;
}
.filters button.on, .filters button:hover { background: var(--accent); color: #fff; }
.tools, .stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.tool, .store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #242830;
  color: #fff;
  font-weight: 700;
}
.tool:hover, .store:hover { background: #323844; color: #fff; }
.tool .ico, .gallery-full svg, .lightbox-close svg { width: 22px; height: 22px; display: block; }
.store img { height: 28px; width: auto; max-width: none; object-fit: contain; display: block; }

.page-title { margin: 8px 0 18px; color: var(--heading); font-size: 32px; line-height: 1.2; }
.gallery-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f4f6f8;
  overflow: hidden;
}
.gallery-frame img.gallery-photo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  display: block;
  background: #f4f6f8;
}
.gallery-full, .lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.gallery-full:hover, .lightbox-close:hover { background: rgba(0, 0, 0, 0.7); }
.thumb-strip { height: 128px; margin-top: 10px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.thumb-strip::-webkit-scrollbar { display: none; height: 0; }
.thumb-track { display: flex; gap: 8px; height: 128px; }
.thumb-track button {
  height: 128px;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
  overflow: hidden;
  line-height: 0;
}
.thumb-track button.on { border-color: var(--accent); }
.thumb-track img { height: 100%; width: auto; max-width: none; max-height: 100%; object-fit: contain; display: block; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 10, 14, 0.94);
  padding: 64px 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none !important; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--heading); line-height: 1.3; margin: 1.15em 0 0.4em; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 20px; }
.prose h4 { font-size: 18px; }
.prose p { margin: 0 0 1em; }
.prose img { border-radius: 4px; }
.prose ul { padding-left: 18px; }
.prose iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
  border: 0;
  margin: 16px 0;
  background: #111;
}
.compare-box { position: relative; margin: 16px 0; overflow: hidden; user-select: none; }
.compare-box img { -webkit-user-drag: none; pointer-events: none; }
.compare-box > img { width: 100%; height: auto; display: block; }
.compare-top { position: absolute; top: 0; left: 0; height: 100%; width: 50%; overflow: hidden; }
.compare-top img { position: absolute; top: 0; left: 0; max-width: none; height: 100%; object-fit: cover; }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 64px;
  transform: translateX(-50%);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: ew-resize;
  z-index: 2;
  touch-action: none;
}
.compare-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.compare-handle span {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  transform: translateY(-50%);
}
.compare-handle span:first-child { left: 0; }
.compare-handle span:last-child { right: 0; }
.tab-panel { display: none; }
.tab-panel.is-on { display: block; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.more-row { text-align: center; margin: 22px 0 0; }
.more-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 12px 22px;
  border-radius: 2px;
}
.more-btn:hover { background: var(--accent-dark); color: #fff; }
.prose img.zoomable { cursor: zoom-in; }

.site-footer { background: var(--footer); color: #c5cad1; padding: 36px 0 22px; margin-top: 20px; }
.site-footer a { color: #fff; }
.footer-row { display: flex; justify-content: space-between; gap: 18px; align-items: center; flex-wrap: wrap; }
.stay { margin: 0 0 8px; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; color: #fff; }
.copy { margin: 18px 0 0; color: #8d939b; font-size: 13px; }

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex: none;
    flex-direction: column;
    background: var(--header);
    border-bottom: 1px solid #1b1e24;
    padding: 8px 16px 12px;
  }
  .menu.open { display: flex; }
  .header-row { flex-wrap: wrap; min-height: 72px; }
  .logo img { height: 52px; }
  .header-tools { gap: 10px; }
  .hero, .hero-copy { min-height: 420px; }
  .hero-copy h2, .page-cover h1 { font-size: 28px; }
  .posts { grid-template-columns: 1fr; }
  .page-title { font-size: 26px; }
  .reel-track .card { flex-basis: 100%; }
  .lightbox { padding: 56px 12px 12px; }
  .edge { width: 48px; }
}
