/* Product discovery, stories, artwork browsing and phone previews. */
[hidden] { display: none !important; }
.product-grid .product-card { min-height: 0; }
.product-card-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 188px;
  height: 100%;
  padding: clamp(18px, 2.3vw, 27px);
  color: inherit;
  text-decoration: none;
}
.product-card-link:hover .product-more,
.product-card-link:focus-visible .product-more { text-decoration: underline; }
.product-card-link .product-description { margin: 12px 0 16px; }
.product-card-link .product-more { margin-top: auto; }
.experience-ribbon .type-card-image {
  display: block; width: 70px; height: 70px; object-fit: cover;
  border-radius: 12px; margin: 0 auto 8px; border: 1px solid #ddbd7b;
}
.story-section { padding-block: clamp(44px, 7vw, 96px); }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.story-card { display: flex; flex-direction: column; background: #fcf8ef; border: 1px solid #d8c9a9; border-radius: 14px; overflow: hidden; color: #17342a; }
.story-card:first-child, .story-card:nth-child(2) { grid-column: span 1; }
.story-image { width: 100%; aspect-ratio: 2.45; object-fit: cover; display: block; }
.story-body { display: flex; flex-direction: column; height: 100%; padding: 22px; }
.story-category { color: #786044; font: 700 12px/1.4 Arial, sans-serif; }
.story-card h3 { font: 400 clamp(24px, 2.8vw, 35px)/1.08 QrofisEditorial, Georgia, serif; margin: 7px 0 10px; }
.story-card p { margin: 0 0 18px; color: #40564c; font: 15px/1.65 Arial, sans-serif; }
.story-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: auto; }
.story-actions a, .product-related a { color: #184f3c; text-underline-offset: 4px; font: 700 13px/1.5 Arial, sans-serif; }

.artwork-filters { display: none; flex-wrap: wrap; gap: 9px; margin: 0 0 20px; }
.js-artwork .artwork-filters { display: flex; }
.artwork-filters button {
  border: 1px solid #c5af84; border-radius: 24px; background: #fbf7ec; color: #15362a;
  font: 700 13px/1.3 Arial, sans-serif; padding: 9px 15px; cursor: pointer;
}
.artwork-filters button[aria-pressed=true] { background: #123a2e; border-color: #123a2e; color: #fff5de; }
#visual .art-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
#visual .art-grid img { aspect-ratio: 1; object-fit: contain; display: block; }

.demo-dialog {
  box-sizing: border-box; position: fixed; inset: 0; margin: auto; border: 1px solid #a08452;
  border-radius: 24px; padding: 14px 18px 15px; width: min(410px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px); overflow: auto; background: #0c3026; color: #fff1d4;
  box-shadow: 0 26px 100px #04130dcc;
}
.demo-dialog::backdrop { background: #061b17c9; backdrop-filter: blur(5px); }
.demo-dialog form { margin: 0 0 7px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.demo-dialog-label { font: 700 13px/1.35 Arial, sans-serif; }
.demo-dialog button { border: 1px solid #b19b71; border-radius: 50%; width: 36px; height: 36px; background: transparent; color: inherit; font: 22px/1 Arial, sans-serif; cursor: pointer; }
.preview-phone {
  position: relative; border: 7px solid #101719; border-radius: 31px; overflow: hidden;
  display: grid; place-items: start center; aspect-ratio: 9 / 15; max-height: min(545px, 69dvh);
  background: #f8e5d7; color: #2e211e; margin: 0 auto; width: auto;
}
.preview-phone img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.phone-notch { position: absolute; z-index: 1; top: -1px; left: 50%; transform: translateX(-50%); background: #101719; width: 37%; height: 12px; border-radius: 0 0 12px 12px; }
.phone-copy { position: relative; margin: 15% 9% 0; text-align: center; }
.phone-copy h2 { margin: 0 0 9px; color: #522831; font: 400 clamp(24px, 4.8vh, 38px)/1 QrofisEditorial, Georgia, serif; letter-spacing: -.025em; }
.phone-copy p { margin: 0; color: #342b29; font: 14px/1.55 Arial, sans-serif; }
.demo-dialog .demo-live-link { display: block; text-align: center; margin-top: 12px; padding: 9px 13px; border-radius: 20px; background: #f1cb87; color: #142b22; font: 700 13px/1.4 Arial, sans-serif; text-decoration: none; }
.demo-dialog a:focus-visible, .demo-dialog button:focus-visible { outline: 2px solid white; outline-offset: 3px; }

.product-page { margin: 0; background: #f7f1e4; }
.product-top { background: #0c3026; color: #fff1d5; }
.product-nav { min-height: 65px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px 22px; padding-block: 10px; }
.product-nav .brand { margin-right: auto; }
.product-nav .brand img { width: 138px; height: auto; display: block; }
.product-nav a, .product-nav button { color: #fff1d5; font: 700 13px/1.3 Arial, sans-serif; }
.product-nav button { background: transparent; border: 1px solid #bba477; border-radius: 20px; padding: 7px 12px; cursor: pointer; }
.product-hero { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); gap: clamp(20px, 5vw, 72px); align-items: center; padding-block: clamp(46px, 7vw, 100px); }
.product-hero h1 { font: 400 clamp(46px, 6vw, 88px)/.95 QrofisEditorial, Georgia, serif; color: #fff2d8; letter-spacing: -.04em; margin: 10px 0 17px; }
.product-hero p { color: #efe0c2; font: 17px/1.6 Arial, sans-serif; max-width: 570px; }
.product-kicker { color: #e7c88e; font: 700 13px/1.35 Arial, sans-serif; }
.product-scan { background: #fdf6e8; border: 1px solid #dbc89f; border-radius: 17px; padding: clamp(20px, 3vw, 36px); color: #152f25; box-shadow: 0 14px 48px #031e14aa; }
.product-scan h2, .product-body h2 { font: 400 clamp(28px, 3.5vw, 44px)/1.05 QrofisEditorial, Georgia, serif; margin: 0 0 10px; }
.product-scan p { color: #3c5449; font-size: 15px; margin: 0; }
.product-body { padding-block: 44px 64px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.product-body article { padding: clamp(20px, 3vw, 34px); border: 1px solid #d8c9a9; border-radius: 17px; background: #fffaf0; color: #1c3b2f; }
.product-body p { color: #40564c; font: 16px/1.7 Arial,sans-serif; }
.product-body p:last-child { margin-bottom: 0; }
.product-related { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 18px; }
.product-footer { padding-block: 0 42px; }

@media (max-width: 950px) { .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } #visual .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .story-grid, .product-body, .product-hero { grid-template-columns: 1fr; }
  #visual .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-nav { gap: 8px 11px; }
  .product-nav .brand { flex-basis: 100%; }
  .experience-ribbon .type-card-image { width: 42px; height: 42px; }
  .story-image { aspect-ratio: 2.55; }
}

.experience-ribbon { grid-template-columns: repeat(9,minmax(0,1fr)); }
.experience-ribbon .type-card-image, .experience-ribbon a > span { width: 55px; height: 55px; margin: 0; }
@media (max-width: 860px) {
  .experience-ribbon { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .experience-ribbon { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .experience-ribbon .type-card-image, .experience-ribbon a > span { width: 43px; height: 43px; }
}
.preview-phone { width: min(100%, 320px, 41.4dvh); }
