:root {
  --bear-red: #b72f2f;
}

img[src*="/mascot/kobro-bear-"][src$=".svg"] {
  display: block;
  background: transparent;
  filter: none;
  image-rendering: auto;
}

/* KOBRO traveler system */
.intro-center {
  position: relative;
}

.intro-bear {
  position: absolute;
  right: 3vw;
  top: 50%;
  width: clamp(96px, 13vw, 210px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  transform: translateY(-58%);
  animation: mascotIntro 1s var(--v3-ease) .18s both;
  z-index: 2;
}

@keyframes mascotIntro {
  from { opacity: 0; transform: translateY(-48%) scale(.72) rotate(8deg); }
  to { opacity: 1; transform: translateY(-58%) scale(1) rotate(0); }
}

.mascot-hero {
  background: #f6f4f1;
  color: #08090b;
  isolation: isolate;
}

.hero-bear {
  position: absolute;
  right: 11vw;
  top: 14%;
  height: min(67vh, 760px);
  width: auto;
  z-index: 2;
  object-fit: contain;
  animation: none;
  transform-origin: 50% 90%;
  will-change: auto;
}

.mascot-hero h1 {
  position: relative;
  z-index: 1;
}

.mascot-hero .hero-footer,
.mascot-hero .hero-meta-left,
.mascot-hero .hero-meta-right {
  position: relative;
  z-index: 3;
}

.hero-bear-tag {
  position: absolute;
  right: var(--pad);
  bottom: 38px;
  z-index: 4;
  padding: 8px 11px;
  background: #08090b;
  color: #f6f4f1;
}

@keyframes mascotFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-.5deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(.7deg); }
}

.mascot-intro {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(30px, 7vw, 120px);
  align-items: center;
}

.mascot-intro-copy h2 {
  margin: 18px 0 28px;
  font: 600 clamp(54px, 7.4vw, 112px)/.86 var(--serif);
  letter-spacing: -.055em;
}

.mascot-intro-copy p {
  max-width: 42ch;
  margin: 0 0 28px;
  font-size: clamp(17px, 1.5vw, 22px);
}

.mascot-stage {
  margin: 0;
  min-height: 650px;
  padding: clamp(18px, 3vw, 42px) clamp(18px, 5vw, 70px) 0;
  overflow: hidden;
  background: #f6f4f1;
  border: 1px solid var(--line);
  position: relative;
}

.mascot-stage::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(8, 9, 11, .12);
  pointer-events: none;
}

.mascot-stage img {
  width: 100%;
  height: 600px;
  object-fit: contain;
  object-position: center bottom;
  transition: transform .7s var(--v3-ease);
}

.mascot-stage:hover img {
  transform: translateY(-9px) rotate(-1deg);
}

.mascot-stage figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #08090b;
}

.about-hero {
  background: #f6f4f1;
  color: #08090b;
  isolation: isolate;
}

.about-hero h1,
.about-hero .lede,
.about-hero .crumb,
.about-hero .page-count {
  position: relative;
  z-index: 2;
}

.about-bear {
  position: absolute;
  right: 5vw;
  bottom: -7%;
  height: 82%;
  width: auto;
  object-fit: contain;
  z-index: 1;
}

.roam-hero {
  background: #f6f4f1;
  color: #08090b;
  isolation: isolate;
}

.roam-hero h1,
.roam-hero .lede,
.roam-hero .crumb,
.roam-hero .page-count {
  position: relative;
  z-index: 2;
}

.roam-bear {
  position: absolute;
  right: 5vw;
  bottom: -9%;
  height: 86%;
  width: auto;
  object-fit: contain;
  z-index: 1;
}

.mascot-pose-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.mascot-pose-duo > div,
.mascot-pose-duo > header {
  background: #f6f4f1;
  color: #08090b;
  min-height: 640px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.mascot-pose-duo > div img {
  width: 100%;
  height: 590px;
  object-fit: contain;
  object-position: center bottom;
  transition: transform .7s var(--v3-ease);
}

.mascot-pose-duo > div:hover img {
  transform: translateY(-10px) rotate(-1deg);
}

.mascot-pose-duo > header {
  grid-column: 1 / 3;
  min-height: auto;
  background: #08090b;
  color: #f6f4f1;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  align-items: end;
  padding: clamp(44px, 7vw, 105px) var(--pad);
}

.mascot-pose-duo > header h2 {
  margin: 0;
  font: 600 clamp(52px, 7vw, 105px)/.88 var(--serif);
  letter-spacing: -.055em;
}

.mascot-pose-duo > header p {
  margin: 0;
  max-width: 32ch;
}

.mascot-missing {
  position: relative;
  overflow: hidden;
  padding-right: min(46vw, 620px);
}

.mascot-missing > img {
  position: absolute;
  right: var(--pad);
  width: min(40vw, 520px);
  border-radius: 50%;
  border: 1px solid var(--line);
}

.empty-state .empty-bear {
  width: 118px;
  margin: 4px 0 18px;
  border-radius: 50%;
}

.article-seal img {
  border-radius: 50%;
}

/* Dashboard */
.admin-brand img {
  filter: none;
  border-radius: 50%;
}

.lock-card > img {
  width: 92px;
  border-radius: 50%;
}

.dashboard-hero > img {
  width: 250px;
  height: 300px;
  object-fit: contain;
  object-position: center bottom;
  filter: none;
  background: transparent;
}

@media (max-width: 1000px) {
  .hero-bear { right: 4vw; height: min(61vh, 650px); }
  .about-bear { right: -7vw; opacity: .56; }
  .roam-bear { right: -7vw; opacity: .58; }
}

@media (max-width: 800px) {
  .intro-bear { width: 110px; right: 5vw; top: 25%; }
  .hero-bear { right: -11vw; top: 18%; height: 51vh; opacity: .82; }
  .mascot-hero h1 { align-self: start; margin-top: 19vh; }
  .hero-bear-tag { bottom: 18px; }
  .mascot-intro { grid-template-columns: 1fr; }
  .mascot-stage { min-height: 510px; }
  .mascot-stage img { height: 490px; }
  .about-bear { right: -22vw; height: 66%; opacity: .34; }
  .roam-bear { right: -22vw; height: 68%; opacity: .36; }
  .mascot-pose-duo { grid-template-columns: 1fr; }
  .mascot-pose-duo > header { grid-column: auto; grid-template-columns: 1fr; }
  .mascot-pose-duo > div { min-height: 520px; }
  .mascot-pose-duo > div img { height: 480px; }
  .mascot-missing { padding-right: var(--pad); padding-top: calc(var(--header) + 310px); }
  .mascot-missing > img { top: calc(var(--header) + 34px); right: 50%; transform: translateX(50%); width: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-bear,
  .hero-bear { animation: none !important; }
}

/* Bear-led fallbacks replace the retired K/star mark and seal. */
.feature-mascot {
  display: block;
  width: min(88%, 270px);
  height: 300px;
  object-fit: contain;
  margin: 20px auto 0;
}

.project-media > img.project-mascot {
  position: absolute;
  width: 122px;
  height: auto;
  right: 24px;
  top: 24px;
  object-fit: contain;
  transition: none;
}

/* Primary brand hierarchy: editorial wordmark first, bear mascot second. */
.brand-lockup {
  display: inline-flex;
  align-items: flex-start;
  color: inherit;
}

.brand-word {
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 4.361 / 1;
  background: currentColor;
  -webkit-mask: url('../assets/kobro-wordmark-mono.svg') center / contain no-repeat;
  mask: url('../assets/kobro-wordmark-mono.svg') center / contain no-repeat;
}

.brand-star {
  flex: 0 0 auto;
  color: var(--gold);
  font-style: normal;
  line-height: 1;
}

.wordmark.brand-lockup {
  height: 32px;
  letter-spacing: 0;
}

.brand-lockup-header .brand-word {
  height: 29px;
}

.brand-lockup-header .brand-star {
  margin: -1px 0 0 5px;
  font-size: 12px;
}

.brand-lockup-intro {
  align-items: flex-start;
}

.brand-lockup-intro .brand-word {
  width: min(86vw, 1560px);
}

.brand-lockup-intro .brand-star {
  margin: 0 0 0 1vw;
  font-size: clamp(28px, 4vw, 68px);
}

.hero-v3 h1.brand-lockup-hero {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.brand-lockup-hero .brand-word {
  width: min(88vw, 1640px);
}

.brand-lockup-hero .brand-star {
  margin: 0 0 0 .8vw;
  font-size: clamp(28px, 4.4vw, 74px);
}

.footer-big.brand-lockup-footer {
  display: flex;
  align-items: flex-start;
  letter-spacing: 0;
}

.brand-lockup-footer .brand-word {
  width: min(45vw, 650px);
}

.brand-lockup-footer .brand-star {
  margin: 0 0 0 8px;
  font-size: clamp(20px, 3vw, 44px);
}

@media (max-width: 800px) {
  .brand-lockup-intro .brand-word,
  .brand-lockup-hero .brand-word {
    width: 83vw;
  }

  .brand-lockup-footer .brand-word {
    width: min(72vw, 520px);
  }
}

.admin-brand {
  display: flex;
  align-items: center;
  letter-spacing: 0;
}

.admin-brand img {
  width: 165px;
  filter: none;
}

.lock-card img.lock-wordmark {
  width: min(270px, 100%);
}

/* Merged Journal and Collection + Shop destinations. */
.index-strip {
  grid-template-columns: repeat(3, 1fr);
}

.section-switcher {
  position: sticky;
  top: var(--header);
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #08090b;
  color: #f7f2eb;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.section-switcher a {
  min-height: 112px;
  padding: 18px var(--pad);
  border-right: 1px solid rgba(255,255,255,.18);
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 3px 18px;
  transition: background .25s, color .25s;
}

.section-switcher a:last-child {
  border-right: 0;
}

.section-switcher a:hover {
  background: var(--gold);
  color: #08090b;
}

.section-switcher strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  font: 600 clamp(25px,3vw,42px)/.9 var(--serif);
}

.section-switcher small {
  font: 400 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .62;
}

.anchor-section {
  scroll-margin-top: calc(var(--header) + 110px);
}

.journal-hero h1 {
  font-size: clamp(82px,14vw,215px);
}

.collection-commerce-hero {
  isolation: isolate;
}

.collection-commerce-hero h1,
.collection-commerce-hero .lede,
.collection-commerce-hero .crumb,
.collection-commerce-hero .page-count {
  position: relative;
  z-index: 2;
}

.collection-hero-bear {
  position: absolute;
  right: 4vw;
  bottom: -10%;
  height: 88%;
  width: auto;
  object-fit: contain;
  z-index: 1;
}

.section-tally {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: right;
}

.section-tally span {
  color: var(--gold);
}

.market-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  margin: -18px 0 46px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.market-intro p {
  margin: 0;
  max-width: 34ch;
  font: 500 clamp(24px,3vw,40px)/1.08 var(--serif);
}

.market-filters {
  margin-bottom: 32px;
}

.product-card.is-slab .product-image {
  background: #d8d5cf;
  color: #08090b;
}

.product-card.is-slab .product-photo {
  object-fit: contain;
  padding: 22px;
  background: #d8d5cf;
}

.slab-product-symbol {
  padding: 28px;
}

.sale-slab {
  width: min(230px,78%);
  aspect-ratio: 2.5 / 3.5;
  padding: 9px;
  border: 2px solid rgba(8,9,11,.36);
  border-radius: 13px;
  background: rgba(247,242,235,.58);
  box-shadow: 0 18px 38px rgba(8,9,11,.14);
  display: grid;
  grid-template-rows: 58px 1fr;
}

.sale-slab-label {
  background: #cf212b;
  color: white;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sale-slab-label span {
  font: 500 8px var(--mono);
  letter-spacing: .08em;
}

.sale-slab-label b {
  font: 700 12px var(--sans);
}

.sale-card-face {
  margin-top: 8px;
  border: 1px solid rgba(247,242,235,.42);
  background: #08090b;
  color: #f7f2eb;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
}

.product-symbol .sale-card-face img {
  width: 76px;
}

.sale-card-face small {
  font: 500 8px var(--mono);
  letter-spacing: .08em;
}

.market-note {
  min-height: 680px;
  background: #08090b;
  color: #f7f2eb;
  display: grid;
  grid-template-columns: minmax(300px,.85fr) 1.15fr;
  gap: 7vw;
  align-items: end;
  padding: 60px var(--pad) 0;
  overflow: hidden;
}

.market-note img {
  width: min(100%,540px);
  max-height: 620px;
  object-fit: contain;
  object-position: bottom;
}

.market-note > div {
  align-self: center;
  padding-bottom: 50px;
}

.market-note h2 {
  margin: 18px 0 24px;
  font: 600 clamp(54px,7vw,110px)/.84 var(--serif);
  letter-spacing: -.05em;
}

.market-note p {
  max-width: 46ch;
  color: #b9b5ae;
}

.redirect-page {
  min-height: 100svh;
  padding: 12vh var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.redirect-page h1 {
  max-width: 10ch;
  margin: 18px 0;
  font: 600 clamp(68px,12vw,180px)/.78 var(--serif);
  letter-spacing: -.06em;
}

.admin-side-v3 {
  gap: 22px;
}

.overview-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .collection-hero-bear {
    right: -12vw;
    height: 68%;
    opacity: .45;
  }

  .market-intro,
  .market-note {
    grid-template-columns: 1fr;
  }

  .market-intro span {
    justify-self: start;
  }

  .market-note {
    padding-top: 70px;
  }

  .market-note img {
    order: 2;
    margin: auto;
  }

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

@media (max-width: 620px) {
  .section-switcher {
    position: static;
    grid-template-columns: 1fr;
  }

  .section-switcher a {
    min-height: 96px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
  }

  .index-strip {
    grid-template-columns: 1fr;
  }

  .collection-hero-bear {
    right: -34vw;
    height: 58%;
    opacity: .28;
  }
}
