/* This sheet belongs to the fixed panorama preview. The center matches the 1254 px design. */
body[data-layout="panorama-fixed"] {
  --panorama-width: 1254px;
  --shelf-width: calc(var(--panorama-width) - 60px);
  --layout-gutter: 30px;
}

.showcase,
.about {
  --u: 1px;
}
.about {
  max-width: var(--panorama-width);
  margin-inline: auto;
}
.product-card {
  height: 232px;
  aspect-ratio: auto;
}
.card-inside {
  --p: 1px;
}
.shelf-heading h2 {
  margin-right: auto;
}
.shelf-controls {
  display: flex;
  gap: 7px;
  margin-right: 16px;
}
.shelf-controls[hidden] {
  display: none;
}
.shelf-controls .round-arrow {
  width: 32px;
  height: 32px;
}
@container (max-width: 248px) {
  .card-inside {
    --p: 0.87px;
  }
  .card-info,
  .card-size,
  .card-price {
    left: 51%;
  }
  .cart-add {
    right: 7px;
  }
}

@media (min-width: 901px) {
  .showcase {
    --extra: max(0px, calc((100cqw - var(--panorama-width)) / 2));
    background-size: var(--panorama-width) 342px;
  }
  .topbar {
    inset-inline: 0;
    width: min(calc(100% - 48px), calc(var(--panorama-width) - 96px));
    margin-inline: auto;
  }
  .hero {
    width: min(100%, var(--panorama-width));
    height: 508px;
    margin-inline: auto;
  }
  .hero-photo[data-slide="0"] {
    background-size: var(--panorama-width) 508px;
    background-position: 58% center;
  }
  .hero-photo[data-slide="1"] {
    background-size: var(--panorama-width) auto;
  }
  .hero-photo[data-slide="2"] {
    background-size: 1505px auto;
  }
  .product-shelf {
    width: min(calc(100% - 60px), var(--shelf-width));
    margin-inline: auto;
  }
  .product-grid {
    --visible-cards: 3;
    --shelf-gap: 9px;
    grid-template-columns: none;
    grid-auto-flow: column;
    gap: var(--shelf-gap);
    grid-auto-columns: calc((100% - (var(--visible-cards) - 1) * var(--shelf-gap)) / var(--visible-cards));
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #c6ae8a #544432;
  }
  .product-grid[data-scroll-ready] {
    scrollbar-width: none;
  }
  .product-grid[data-scroll-ready]::-webkit-scrollbar {
    display: none;
  }
  .product-card {
    scroll-snap-align: start;
  }

  .home-section,
  .reading-layout {
    width: min(calc(100% - 2 * var(--layout-gutter)), var(--shelf-width));
  }
  .home-section {
    padding-block: 64px;
  }
  .home-section-head {
    margin-bottom: 24px;
  }
  .home-section-head h2,
  .reading-copy-home h2 {
    font-size: 44px;
  }
  .rhythm-cards {
    gap: 16px;
  }
  .rhythm-card {
    padding: 24px;
  }
  .rhythm-card h3 {
    font-size: 36px;
  }
  .home-set-grid {
    gap: 50px;
  }
  .home-set-label {
    padding: 16px 24px;
  }
  .home-set-label h3,
  .home-set-list h3 {
    font-size: 29px;
  }
  .reading-layout {
    gap: 72px;
    padding-block: 54px;
  }
  .reading-layout > img {
    height: 290px;
  }
  .reading-copy-home p {
    font-size: 18px;
  }
  .footer-content,
  .footer-base {
    max-width: var(--panorama-width);
    padding-inline: var(--layout-gutter);
  }
  .footer-content {
    gap: 48px;
  }
}
@media (min-width: 1120px) {
  .product-grid {
    --visible-cards: 4;
  }
}

@media (min-width: 1255px) {
  /* Only these side plates are revealed as the viewport grows. All three slides keep a fixed center. */
  .hero-photo {
    --join: min(var(--extra), 76px);
  }
  .hero-photo::before,
  .hero-photo::after {
    content: "";
    position: absolute;
    inset-block: 0;
    width: calc(var(--extra) + var(--join));
    background-repeat: no-repeat;
    background-size: auto 100%;
    pointer-events: none;
  }
  .hero-photo::before {
    right: calc(100% - var(--join));
    background-color: #302216;
    background-image:
      linear-gradient(to right, #302216, transparent 112px), url("assets/images/panorama-wing-left.webp");
    background-size:
      1524px 100%,
      auto 100%;
    background-position: right center;
    mask-image: linear-gradient(to left, transparent, #000 var(--join));
  }
  .hero-photo::after {
    left: calc(100% - var(--join));
    background-color: #846b49;
    background-image:
      linear-gradient(to left, #846b49, transparent 112px), url("assets/images/panorama-wing-right.webp");
    background-size:
      1524px 100%,
      auto 100%;
    background-position: left center;
    mask-image: linear-gradient(to right, transparent, #000 var(--join));
  }
  .hero-photo[data-slide="1"]::before,
  .hero-photo[data-slide="1"]::after {
    width: var(--extra);
    background-image: inherit;
    background-size: var(--panorama-width) auto;
    transform: scaleX(-1);
    mask-image: none;
  }
  .hero-photo[data-slide="1"]::before {
    right: 100%;
    background-position: left 48%;
  }
  .hero-photo[data-slide="1"]::after {
    left: 100%;
    background-position: right 48%;
  }
  .showcase::before,
  .showcase::after {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: 0;
    height: 342px;
    width: var(--extra);
    background: #594229 url("assets/images/stone-setting.webp") repeat-x;
    background-size: var(--panorama-width) 342px;
    transform: scaleX(-1);
    pointer-events: none;
  }
  .showcase::before {
    left: 0;
    background-position: left bottom;
  }
  .showcase::after {
    right: 0;
    background-position: right bottom;
  }
  .hero::before,
  .hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: calc(100% - 28px);
    width: var(--extra);
    height: 56px;
    backdrop-filter: blur(10px);
    mask-image: linear-gradient(transparent, #000 46%, #000 54%, transparent);
    pointer-events: none;
  }
  .hero::before {
    right: 100%;
  }
  .hero::after {
    left: 100%;
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  .topbar {
    width: calc(100% - 32px);
    grid-template-columns: 154px minmax(0, 1fr) 144px 96px;
    padding-inline: 18px;
    gap: 12px;
  }
  .main-nav {
    justify-content: center;
  }
  .main-nav > a,
  .catalog-toggle {
    padding-inline: 7px;
  }
  .header-actions {
    padding-left: 0;
    gap: 4px;
  }
  .header-actions .icon-button {
    width: 28px;
  }
  .hero-copy {
    top: 92px;
    left: 29px;
    width: calc(58% - 138px);
  }
  .hero-title span {
    width: fit-content;
    max-width: 100%;
  }
  .hero-intro {
    max-width: 394px;
    margin-top: 12px;
  }
  .hero-links {
    margin-top: 15px;
    gap: 14px;
  }
  .learn-more .link-rule {
    white-space: nowrap;
  }
  .benefits {
    left: 20px;
    bottom: 17px;
    padding: 6px 9px;
    border-radius: 28px;
    background: #251c10a8;
  }
  .hero-note {
    display: none;
  }
  .product-shelf {
    width: calc(100% - 32px);
    padding-inline: 18px;
  }
  .about-copy {
    padding-inline: 28px 16px;
  }
  .brand-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .product-shelf {
    width: min(calc(100% - 32px), 620px);
    margin-inline: auto;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 278px));
    justify-content: center;
  }
}
@media (min-width: 621px) and (max-width: 900px) {
  .hero {
    height: 446px;
  }
  .hero-photo[data-slide]::after {
    height: 274px;
  }
  .hero-copy .hero-title {
    font-size: 40px;
  }
  [data-layout] .hero-copy:is([data-slide="1"], [data-slide="2"]) .hero-title {
    font-size: 35px;
  }
}
@media (max-width: 620px) {
  body[data-layout="panorama-fixed"] {
    --layout-gutter: 16px;
  }
  .hero {
    --photo-height: 244px;
  }
  .hero-title {
    font-size: 44px;
  }
  .hero-copy:is([data-slide="1"], [data-slide="2"]) .hero-title {
    font-size: 36px;
  }
  .product-shelf {
    width: calc(100% - 22px);
  }
}
@media (max-width: 520px) {
  .product-shelf {
    width: min(calc(100% - 22px), 324px);
  }
  .product-grid {
    grid-template-columns: minmax(0, 278px);
  }
}


/* Typography for the design preview. */
body[data-key="design"] :is(.home-section-head, .reading-copy-home, .shelf-heading, .about-copy) h2 {
  letter-spacing: normal;
  line-height: 1.2;
}

body[data-key="design"] :is(.rhythm-card, .goal-card-copy, .home-set-label, .home-set-list, .card-info) h3 {
  letter-spacing: 0.01em;
  line-height: 1.2;
}

body[data-key="design"] .product-card .card-info {
  top: 22%;
}


body[data-key="design"] {
  --home-card-radius: 10px;
  --brand-section-gap: clamp(16px, 2vw, 24px);
  --home-card-gap: clamp(10px, 1.4vw, 19px);
}

body[data-key="design"] .home-rhythm {
  padding-block-end: var(--brand-section-gap);
}

body[data-key="design"] .rhythm-cards,
body[data-key="design"] .about {
  gap: var(--home-card-gap);
}

body[data-key="design"] .about {
  width: min(calc(100% - 2 * var(--layout-gutter)), var(--shelf-width));
  padding: 0;
  margin-block-end: var(--brand-section-gap);
  min-height: 0;
  background: transparent;
}

body[data-key="design"] :is(.rhythm-card, .about-copy, .brand-scene) {
  border-radius: var(--home-card-radius);
  overflow: hidden;
}

body[data-key="design"] .about-copy::before {
  inset: 0;
}

@media (min-width: 901px) {
  body[data-key="design"] {
    --home-card-gap: 16px;
  }

  body[data-key="design"] .about {
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  }

  body[data-key="design"] .about-copy {
    padding: clamp(24px, 2.4vw, 36px);
  }

  body[data-key="design"] .brand-scene {
    height: auto;
    aspect-ratio: auto;
    min-height: 392px;
  }

  body[data-key="design"] .brand-scene > img {
    position: absolute;
    inset: 0;
  }
}


@media (min-width: 1255px) {

  body[data-key="design"] .showcase {
    background-image: image-set(url("assets/images/sunlit-panorama.webp?v=20261130-care1") 1x, url("assets/images/sunlit-panorama@2x.webp?v=20261130-care1") 2x);
    background-size: max(2508px, 100%) 100%;
    background-position: center top;
    background-repeat: no-repeat;
  }

  body[data-key="design"] .hero-photo:is([data-slide="1"], [data-slide="2"]) {
    left: 50%;
    right: auto;
    width: 100cqw;
    transform: translateX(-50%);
    background-size: cover;
    background-repeat: no-repeat;
  }

  body[data-key="design"] :is(.showcase, .hero, .hero-photo)::before,
  body[data-key="design"] :is(.showcase, .hero, .hero-photo)::after {
    content: none;
  }
}


body[data-key="design"] .hero-eyebrow:empty { display: none; }

body[data-key="design"] .hero-copy[data-slide="0"] {
  top: 94px;
  width: 48%;
}

body[data-key="design"] .hero-copy[data-slide="0"] h1 {
  margin: 1lh 0 0;
  font: 400 clamp(35px, 3.9vw, 46px)/1.08 "Prata", var(--serif);
  letter-spacing: normal;
  text-wrap: balance;
}

body[data-key="design"] .hero-copy[data-slide="0"] .hero-intro {
  max-width: 44ch;
}

body[data-key="design"] .hero-note {
  right: 10px;
  width: 78px;
  text-align: center;
  font: 400 19px/1.35 var(--editorial);
  color: #fff3dc;
  text-shadow: 0 1px 5px #402811;
}

body[data-key="design"] .hero-note small {
  display: block;
  margin-top: 6px;
  font: italic 15px/1.3 var(--serif);
}

@media (min-width: 1200px) {
  body[data-key="design"] .hero-copy[data-slide="0"] + .hero-note {
    top: 86px;
    left: calc(50% + 137px);
    right: auto;
    width: max-content;
    transform: translateX(-50%);
    text-shadow: 0 1px 3px #301b0c, 0 0 8px #301b0c;
  }
  body[data-key="design"] .hero-copy[data-slide="0"] + .hero-note br {
    display: none;
  }
  body[data-key="design"] .hero-copy[data-slide="0"] + .hero-note small {
    margin-top: 2px;
  }
}

@media (max-width: 900px) {
  body[data-key="design"] .hero-links {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
  body[data-key="design"] .hero-cta {
    flex: none;
    padding-inline: 20px;
    white-space: nowrap;
  }
  body[data-key="design"] .learn-more {
    flex: none;
  }
}

@media (min-width: 621px) and (max-width: 900px) {
  body[data-key="design"] .hero-copy[data-slide="0"] { top: 85px; }
  body[data-key="design"] .hero-copy[data-slide="0"] h1 { font-size: clamp(28px, 3.9vw, 35px); }
}

@media (max-width: 620px) {
  body[data-key="design"] .hero { height: calc(261px + var(--photo-height)); }
  body[data-key="design"] .hero-photo { bottom: 0; }
  body[data-key="design"] .slider-control { bottom: 12px; }
  body[data-key="design"] .hero:has(.hero-copy[data-slide="0"]) {
    height: auto;
    padding: 85px 20px calc(var(--photo-height) + 16px);
  }
  body[data-key="design"] .hero-copy[data-slide="0"] {
    position: relative;
    inset: auto;
    width: auto;
  }
  body[data-key="design"] .hero-copy[data-slide="0"] h1 { font-size: clamp(32px, 9.2vw, 46px); }
}

body[data-key="design"] .hero-photo[data-slide="0"] {
  background-image: image-set(url("assets/images/sunlit-hero.webp") 1x, url("assets/images/sunlit-hero@2x.webp?v=20261130-care1") 2x);
}
body[data-key="design"] .hero-photo[data-slide="2"] {
  background-image: linear-gradient(90deg, #20180df0, #302213cb 30%, #30221318 65%),
    image-set(url("assets/images/sunlit-hero.webp") 1x, url("assets/images/sunlit-hero@2x.webp?v=20261130-care1") 2x);
}
@media (min-width: 1255px) {
  body[data-key="design"] .hero-photo[data-slide="0"] { background-image: none; }
}

body[data-key="design"] .topbar {
  --wordmark-glow-x: 126px;
  --wordmark-glow-width: 170px;
  --wordmark-glow-height: 77px;
  background-image: radial-gradient(
    ellipse var(--wordmark-glow-width) var(--wordmark-glow-height) at var(--wordmark-glow-x) 50%,
    #fff1dbef 24%, #f8e2bbd9 48%, transparent 100%
  );
}
body[data-key="design"] .topbar .wordmark img { filter: none; }
@media (min-width: 901px) and (max-width: 1199px) {
  body[data-key="design"] .topbar {
    --wordmark-glow-x: 95px;
    --wordmark-glow-width: 145px;
  }
}
@media (max-width: 900px) {
  body[data-key="design"] .topbar {
    --wordmark-glow-x: 91px;
    --wordmark-glow-width: 133px;
    --wordmark-glow-height: 59px;
  }
}
@media (max-width: 620px) {
  body[data-key="design"] .topbar {
    --wordmark-glow-x: 70px;
    --wordmark-glow-width: 112px;
    --wordmark-glow-height: 56px;
  }
}
body[data-key="design"] .product-card:is([data-product="joint-complex"], [data-product="women-complex"]) .card-info h3 {
  font-size: calc(16.5 * var(--p));
  line-height: 1.12;
}

body[data-key="design"] .product-card[data-product="women-complex"] .card-info {
  left: 49%;
}

body[data-key="design"] .product-card[data-product="women-complex"] .card-info h3 {
  font-size: min(16.5px, 5.7cqi);
}

.hero-photo .hero-glint {
  position: absolute;
  z-index: 2;
  width: clamp(41px, 4vw, 56px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fffcf0 0 5%, #ffefad 9%, #ffd37999 19%, #fcb14e40 36%, transparent 68%);
}
.hero-photo .hero-glint::before,
.hero-photo .hero-glint::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, #fff3bd 22%, white 50%, #fff3bd 78%, transparent);
  clip-path: polygon(0 50%, 43% 46%, 50% 7%, 55% 46%, 100% 50%, 56% 54%, 50% 93%, 45% 54%);
  transform: rotate(-12deg);
}
.hero-photo .hero-glint::after {
  inset: 24%;
  transform: rotate(32deg);
  opacity: .75;
}
@media (prefers-reduced-motion:reduce) { .hero-photo .hero-glint { display:none; } }
