/* Home hero: designer valley, copy card and category shelf. O₃ scroll stays in home-ozone-scroll.css. */

body.theme.og-home {
  --gutter: 24px;
  --gold-text: #8c6a00;
  --ink-2: #57563f;
  --surface: #f5f4ef;
}
@media (max-width: 640px) {
  body.theme.og-home { --gutter: 16px; }
}

body.theme.og-home .og-hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: max(700px, calc(100svh - 110px)); max-height: 960px;
  display: grid; background: var(--surface, #f5f4ef);
}
body.theme.og-home .og-hero:before { display: none !important; }
body.theme.og-home .og-hero:after {
  content: '' !important; position: absolute; inset: auto 0 0 0; top: auto; left: 0; right: 0; bottom: 0;
  height: 44%; width: auto; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 244, 239, 0) 0%, rgba(245, 244, 239, .8) 42%, var(--surface, #f5f4ef) 72%) !important;
  box-shadow: none; opacity: 1 !important;
}
body.theme.og-home .og-hero-bg {
  position: absolute; inset: -60px 0 0; z-index: 0; pointer-events: none;
  background: url(../images/hero/alps.webp) center 40% / cover no-repeat;
  background-image: image-set(url(../images/hero/alps.avif) type("image/avif"), url(../images/hero/alps.webp) type("image/webp"));
  opacity: 1; filter: none; transform: none; will-change: transform, translate;
}
body.theme.og-home .og-hero .hero-inner {
  --pad: max(var(--gutter), env(safe-area-inset-left, 0px), (100% - var(--container, 1320px)) / 2 + var(--gutter));
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); grid-template-rows: 1fr auto;
  column-gap: 32px; width: 100%;
  padding: clamp(32px, 6vh, 64px) var(--pad) 96px;
}
body.theme.og-home .og-hero .hero-card {
  grid-column: 1; grid-row: 1; align-self: start;
  padding: 40px 40px 34px; border-radius: 30px; background: rgba(255, 255, 255, .9);
  box-shadow: 0 30px 70px rgba(35, 35, 15, .18), 0 2px 8px rgba(35, 35, 15, .06);
  animation: og-hero-in .9s var(--ease) both;
  font-family: Onest, var(--f-sans), system-ui, sans-serif;
}
body.theme.og-home .og-hero .hero-card,
body.theme.og-home .og-hero .hero-card h1,
body.theme.og-home .og-hero .hero-card p,
body.theme.og-home .og-hero .hero-card a {
  font-family: Onest, var(--f-sans), system-ui, sans-serif;
}
body.theme.og-home .og-hero .hero-card .eyebrow {
  margin: 0 0 18px; font-family: Onest, var(--f-sans), system-ui, sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--gold-text);
}
body.theme.og-home .og-hero .hero-card .eyebrow::before {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}
body.theme.og-home .og-hero .hero-title {
  font-size: clamp(44px, 5.2vw, 70px); line-height: 1.05; letter-spacing: -0.045em; font-weight: 500;
  margin: 0; max-width: 12em; color: var(--ink, #2f2f18);
}
body.theme.og-home .og-hero .hero-sub {
  margin: 20px 0 0; max-width: 36ch; font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-2); text-wrap: pretty;
}
body.theme.og-home .og-hero .hero-ctas { display: flex; align-items: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
body.theme.og-home .og-hero .hero-ctas .btn {
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none;
  box-shadow: none; transform: none; white-space: nowrap;
}
body.theme.og-home .og-hero .hero-ctas .btn:hover { transform: none; box-shadow: none; }
body.theme.og-home .og-hero .hero-ctas .btn-gold { background: var(--gold); color: var(--ink, #2f2f18); border-color: var(--gold); }
body.theme.og-home .og-hero .hero-ctas .btn-gold:hover { background: #b88a00; color: var(--ink, #2f2f18); border-color: #b88a00; }
body.theme.og-home .og-hero .hero-ctas .btn-line {
  background: transparent; border: 1px solid var(--ink, #2f2f18); color: var(--ink, #2f2f18);
}
body.theme.og-home .og-hero .hero-ctas .btn-line:hover { background: transparent; border-color: var(--ink, #2f2f18); color: var(--ink, #2f2f18); }
@keyframes og-hero-in { from { opacity: 0; transform: translateY(18px); } }

body.theme.og-home .og-hero .shelf-cap {
  grid-column: 1; grid-row: 2; align-self: end; margin: 0 0 4px;
  display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2);
  font-family: Onest, var(--f-sans), system-ui, sans-serif;
}
body.theme.og-home .og-hero .shelf-cap svg { width: 16px; height: 16px; }

body.theme.og-home .og-hero .shelf {
  grid-column: 2; grid-row: 1 / span 2; align-self: end;
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: flex-end; align-items: flex-end; gap: clamp(6px, 1.1vw, 18px);
  --k: .88;
}
body.theme.og-home .og-hero .shelf li { animation: og-shelf-in .8s var(--ease) both; animation-delay: calc(.25s + var(--i, 0) * .06s); }
@keyframes og-shelf-in { from { opacity: 0; transform: translateY(26px); } }
body.theme.og-home .og-hero .shelf-item {
  display: flex; flex-direction: column; align-items: center; gap: 14px; border-radius: 16px; text-decoration: none; color: inherit;
}
body.theme.og-home .og-hero .shelf-stand { position: relative; display: flex; align-items: flex-end; justify-content: center; }
body.theme.og-home .og-hero .shelf-stand img {
  position: relative; height: calc(var(--h) * var(--k)); width: auto; max-width: none; display: block;
  filter: drop-shadow(0 14px 14px rgba(47, 47, 24, .2)); transition: transform .45s var(--ease); will-change: transform;
}
body.theme.og-home .og-hero .shelf-shadow {
  position: absolute; left: -10%; right: -10%; bottom: -10px; height: 22px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(35, 35, 15, .32), rgba(35, 35, 15, 0));
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
body.theme.og-home .og-hero .shelf-label {
  font-size: 13px; font-weight: 500; color: var(--ink, #2f2f18); white-space: nowrap;
  font-family: Onest, var(--f-sans), system-ui, sans-serif; transition: color .2s var(--ease);
}
body.theme.og-home .og-hero .shelf-item:hover img,
body.theme.og-home .og-hero .shelf-item:focus-visible img { transform: translateY(-12px) scale(1.04); }
body.theme.og-home .og-hero .shelf-item:hover .shelf-shadow,
body.theme.og-home .og-hero .shelf-item:focus-visible .shelf-shadow { transform: scale(1.18); opacity: .55; }
body.theme.og-home .og-hero .shelf-item:hover .shelf-label,
body.theme.og-home .og-hero .shelf-item:focus-visible .shelf-label { color: var(--gold-text); }
body.theme.og-home .og-hero .shelf-item:focus-visible { outline: none; }
body.theme.og-home .og-hero .shelf-item:focus-visible .shelf-label { text-decoration: underline; text-underline-offset: 4px; }

body.theme.og-home .og-hero .shelf-tip {
  position: absolute; left: 0; top: 0; z-index: 9; width: 250px;
  display: grid; gap: 5px; padding: 16px 18px; border-radius: var(--radius, 20px); background: #fff;
  box-shadow: 0 22px 50px rgba(47, 47, 24, .16), 0 2px 8px rgba(47, 47, 24, .06);
  pointer-events: none; opacity: 0;
  transform: translate3d(var(--x, 0px), calc(var(--y, 0px) + 8px), 0);
  transition: opacity .2s var(--ease), transform .3s var(--ease); will-change: transform, opacity;
  font-family: Onest, var(--f-sans), system-ui, sans-serif;
}
body.theme.og-home .og-hero .shelf-tip.show { opacity: 1; transform: translate3d(var(--x, 0px), var(--y, 0px), 0); }
body.theme.og-home .og-hero .shelf-tip b { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink, #2f2f18); }
body.theme.og-home .og-hero .shelf-tip span { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
body.theme.og-home .og-hero .shelf-tip .shelf-tip-n {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding-top: 10px;
  border-top: 1px solid var(--line, #e6e3d8); color: var(--gold-text); font-weight: 500;
}
body.theme.og-home .og-hero .shelf-tip svg { width: 14px; height: 14px; }

body.theme.og-home .og-hero .ogx-scroll-hint {
  left: var(--pad, 24px); right: auto; transform: none; z-index: 4;
}

@media (max-width: 1180px) {
  body.theme.og-home .og-hero .hero-inner { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); }
  body.theme.og-home .og-hero .shelf { --k: .78; }
}
@media (max-width: 960px) and (min-width: 761px) {
  body.theme.og-home .og-hero .hero-inner { grid-template-rows: auto 1fr auto; }
  body.theme.og-home .og-hero .shelf { grid-column: 1 / -1; grid-row: 2; justify-content: center; margin-top: 28px; --k: .74; }
  body.theme.og-home .og-hero .shelf-cap { grid-column: 1 / -1; grid-row: 3; justify-self: center; margin: 18px 0 0; }
}
@media (max-width: 760px) {
  body.theme.og-home .og-hero,
  body.theme.og-home .ogx-pin .og-hero {
    height: auto !important; max-height: none; min-height: calc(100svh - var(--ogx-top, 68px));
  }
  body.theme.og-home .og-hero-bg { inset: -40px 0 0; background-position: 54% 30%; }
  body.theme.og-home .og-hero:after {
    height: 42%;
    background: linear-gradient(180deg, rgba(245, 244, 239, 0) 0%, rgba(245, 244, 239, .8) 45%, var(--surface, #f5f4ef) 76%) !important;
  }
  body.theme.og-home .og-hero .hero-inner {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto;
    padding-top: 16px; padding-bottom: 52px;
  }
  body.theme.og-home .og-hero .hero-card { grid-row: 1; padding: 22px 20px 20px; border-radius: 26px; }
  body.theme.og-home .og-hero .hero-card .eyebrow { margin-bottom: 12px; align-items: flex-start; }
  body.theme.og-home .og-hero .hero-card .eyebrow::before { flex: none; margin-top: .5em; }
  body.theme.og-home .og-hero .hero-title { font-size: clamp(34px, 9.2vw, 44px) !important; max-width: none; }
  body.theme.og-home .og-hero .hero-sub { margin-top: 12px; font-size: 15px; max-width: none; }
  body.theme.og-home .og-hero .hero-ctas { margin-top: 20px; flex-wrap: wrap; gap: 8px; flex-direction: row; align-items: stretch; }
  body.theme.og-home .og-hero .hero-ctas .btn { height: 50px; font-size: 15px; padding: 0 18px; flex: 1 1 auto; }
  body.theme.og-home .og-hero .shelf {
    grid-column: 1; grid-row: 3; align-self: end; justify-content: flex-start; gap: 6px; --k: .54;
    margin: 18px calc(-1 * var(--gutter)) 0; padding: 22px var(--gutter) 4px;
    overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 40px), transparent);
  }
  body.theme.og-home .og-hero .shelf::-webkit-scrollbar { display: none; }
  body.theme.og-home .og-hero .shelf.is-auto .shelf-item { will-change: transform; }
  body.theme.og-home .og-hero .shelf .shelf-clone { animation: none; }
  body.theme.og-home .og-hero .shelf li { flex: none; width: 88px; }
  body.theme.og-home .og-hero .shelf li:last-child { margin-right: 24px; }
  body.theme.og-home .og-hero .shelf-item { gap: 12px; }
  body.theme.og-home .og-hero .shelf-label { font-size: 12px; }
  body.theme.og-home .og-hero .shelf-tip { display: none; }
  body.theme.og-home .og-hero .shelf-cap { grid-row: 4; align-self: start; margin: 14px 0 0; font-size: 14px; }
  body.theme.og-home .og-hero .ogx-scroll-hint { display: none; }
}
@media (min-width: 761px) {
  body.theme.og-home .og-hero .shelf .shelf-clone { display: none; }
}
@media (min-width: 400px) and (max-width: 760px) {
  body.theme.og-home .og-hero .shelf { --k: .62; gap: 10px; }
  body.theme.og-home .og-hero .shelf li { width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  body.theme.og-home .og-hero .hero-card,
  body.theme.og-home .og-hero .shelf li,
  body.theme.og-home .og-hero-bg { animation: none; }
  body.theme.og-home .og-hero .shelf-stand img,
  body.theme.og-home .og-hero .shelf-shadow,
  body.theme.og-home .og-hero .shelf-tip { transition: none; }
}
