:root {
  --bg: #f2f2f0;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #6d6d68;
  --line: #d9d9d5;
  --mosaic-line: rgba(17, 17, 17, .08);
  --soft: #e7e7e3;
  --accent: #5f8f4f;
  --shadow: 0 18px 48px rgba(0, 0, 0, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(220px, 520px);
  gap: clamp(18px, 5vw, 64px);
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}

.brandMark {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brandLogo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brandMark strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.02em;
}

.brandMark small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.searchBox {
  position: relative;
  display: block;
}

.searchBox span {
  position: absolute;
  left: 14px;
  top: 50%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateY(-50%);
}

#search {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px 11px 78px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  outline: 0;
}

#search:focus {
  border-color: var(--ink);
}

.catalogShell {
  padding: 24px clamp(18px, 5vw, 72px) 72px;
}

.videoBanner {
  position: relative;
  height: min(50vh, 520px);
  min-height: 340px;
  margin: 0 0 26px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, .08);
  background: var(--paper);
  box-shadow: 0 18px 52px rgba(17, 17, 17, .08);
}

.heroVideo {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
  background: var(--paper);
}

.videoBanner.hasVideo .heroVideo {
  display: block;
}

.videoBanner.hasVideo .videoSplash {
  opacity: 0;
  pointer-events: none;
}

.videoSplash {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: opacity .28s ease;
}

.videoSplash img {
  width: min(42vw, 210px);
  height: auto;
  max-height: 62%;
  object-fit: contain;
}

.videoOverlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
  padding: clamp(18px, 4vw, 42px);
  color: var(--paper);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .58));
}

.videoOverlay span {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
}

.videoOverlay strong {
  max-width: 580px;
  font-size: clamp(34px, 7vw, 82px);
  font-weight: 780;
  letter-spacing: -.055em;
  line-height: .88;
  text-align: right;
}

@keyframes bannerDrift {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-72vw - 20px));
  }
}

.catalogHeader {
  display: none;
}

.eyebrow,
.badge {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.catalogHeader h2,
.sectionTitle h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 6vw, 76px);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: .92;
}

.sectionTitle {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sectionTitle h3 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sectionTitle span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.card {
  flex: 0 0 174px;
  min-height: 158px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, .06);
  background: rgba(255, 255, 255, .86);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  scroll-snap-align: start;
  box-shadow: 0 10px 30px rgba(17, 17, 17, .06);
  transition: box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.card:hover {
  background: var(--paper);
  box-shadow: 0 16px 38px rgba(17, 17, 17, .1);
  transform: translateY(-2px);
}

.card img {
  width: 92px;
  height: 92px;
  display: inline-block;
  object-fit: contain;
  margin: 15px auto 6px;
  padding: 8px;
  background: transparent;
}

.card .body {
  padding: 0 10px 14px;
}

.card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -.02em;
  line-height: 1.08;
}

.cardMeta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

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

.openHint {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.emptyState {
  margin: 34px 0 0;
  padding: 28px;
  border: 1px dashed var(--line);
  background: var(--paper);
  color: var(--muted);
  text-align: center;
}

.featureSection {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 14px;
  margin-top: 24px;
}

.featureCard {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 14px 40px rgba(17, 17, 17, .07);
}

.featureCard img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hidden {
  display: none !important;
}

.brandView {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: auto;
  padding: 26px clamp(14px, 4vw, 56px) 54px;
  background: var(--bg);
}

.iconClose {
  position: fixed;
  right: 20px;
  top: 18px;
  z-index: 70;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 22px;
  font-weight: 850;
  cursor: pointer;
}

.folderHeader {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  max-width: 1220px;
  margin: 0 auto 24px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.folderHeader img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 10px;
  background: var(--bg);
}

.folderHeader h1 {
  margin: 3px 0 14px;
  color: var(--ink);
  font-size: clamp(34px, 6vw, 84px);
  font-weight: 780;
  letter-spacing: -.06em;
  line-height: .9;
}

.brandActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  background: var(--paper);
  color: var(--ink);
}

.btnSecondary {
  background: var(--paper);
  color: var(--ink);
}

.btnSecondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.pagesWrap {
  max-width: 1320px;
  margin: 0 auto;
  border-top: 1px solid var(--mosaic-line);
  border-left: 1px solid var(--mosaic-line);
}

.pages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 0;
}

.pageThumb {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--mosaic-line);
  border-bottom: 1px solid var(--mosaic-line);
  background: var(--paper);
  cursor: pointer;
  overflow: hidden;
  transition: opacity .18s ease;
}

.pageThumb:hover {
  opacity: .82;
}

.pageThumb img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1.24;
  object-fit: contain;
  padding: 2px;
  background: #fff;
}

.pageThumb b {
  display: none;
}

.pdfFrame {
  display: block;
  width: min(1220px, 100%);
  height: calc(100vh - 178px);
  min-height: 560px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.viewerBar {
  min-height: 62px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.viewerBar button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

#pageLabel {
  min-width: min(520px, 42vw);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 720;
}

.stage {
  flex: 1;
  overflow: auto;
  padding: 22px;
  text-align: center;
  cursor: grab;
}

.stage:active {
  cursor: grabbing;
}

.stage img {
  max-width: none;
  box-shadow: 0 0 0 1px var(--line), 0 18px 58px rgba(0, 0, 0, .14);
}

.viewerEdge {
  position: fixed;
  top: 50%;
  z-index: 110;
  width: 48px;
  height: 72px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .86);
  color: var(--ink);
  font-size: 34px;
  cursor: pointer;
  transform: translateY(-50%);
}

.viewerPrev {
  left: 14px;
}

.viewerNext {
  right: 14px;
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .catalogShell {
    padding: 24px 14px 52px;
  }

  .videoBanner {
    height: 48svh;
    min-height: 310px;
    margin-bottom: 22px;
  }

  .videoSplash img {
    width: min(48vw, 170px);
  }

  .videoOverlay {
    display: grid;
    gap: 8px;
    align-content: end;
    justify-content: stretch;
    padding: 18px;
  }

  .videoOverlay strong {
    font-size: 42px;
    text-align: left;
  }

  @keyframes bannerDrift {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-156vw - 16px));
    }
  }

  .grid {
    gap: 10px;
    padding-bottom: 16px;
  }

  .card {
    flex-basis: 138px;
    min-height: 132px;
  }

  .card img {
    width: 72px;
    height: 72px;
    margin-top: 12px;
    padding: 6px;
  }

  .card h3 {
    font-size: 13px;
  }

  .featureSection {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }

  .featureCard {
    min-height: 260px;
  }

  .brandView {
    padding: 72px 14px 34px;
  }

  .folderHeader {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .pageThumb {
    min-height: 0;
  }

  .brandActions {
    gap: 8px;
  }

  .btn {
    min-height: 42px;
    padding: 9px 11px;
    font-size: 15px;
  }

  .pageThumb img {
    aspect-ratio: 1 / 1.38;
    padding: 3px;
  }

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

  .pdfFrame {
    height: calc(100vh - 156px);
    min-height: 460px;
  }

  .viewerBar {
    justify-content: flex-start;
    overflow: auto;
  }

  #pageLabel {
    min-width: 220px;
  }

  .viewerEdge {
    width: 42px;
    height: 62px;
  }
}
