/* Old visual direction, selectively refined. Product assets are unmodified. */
:root { --accent:#ef864b; --paper:#eeede8; --ink:#111214; }
body { -webkit-font-smoothing:antialiased; }
.hero-tools { display:flex; align-items:center; }
.hero-stage { position:absolute; inset:0; }
.hero h1 { text-wrap:initial; }
.button:active { scale:.96; }
.hero-content .button,.hero-browse { transition:background-color calc(180ms * var(--motion)) var(--ease),scale calc(150ms * var(--motion)) var(--ease); }
.hero-bottom { padding-bottom:22px; }

/* A consistent viewing window, with a useful alternate view on deliberate hover. */
.card-media { aspect-ratio:4/5; }
.card-media img { transition:opacity calc(350ms * var(--motion)) var(--ease); transform:none; }
.card-media:hover img { transform:none; }
.card-media picture { position:relative; z-index:0; }
.product-card[data-product-id="g2-clear"] picture>img { object-position:55% 50%; position:absolute; width:120%; height:120%; max-width:none; top:-10%; left:-10%; }
.card-alternate { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; pointer-events:none; }
.card-alternate-label { position:absolute; top:13px; left:13px; max-width:calc(100% - 26px); padding:4px 9px; border-radius:30px; background:#111214e6; color:var(--paper); font-size:10px; line-height:1.5; opacity:0; pointer-events:none; transition:opacity calc(200ms * var(--motion)) var(--ease); }
.card-proof { transition:opacity calc(200ms * var(--motion)) var(--ease); }
@media (hover:hover) and (pointer:fine) {
  .card-open:has(.card-alternate):hover .card-alternate,.card-open:has(.card-alternate):focus-visible .card-alternate { opacity:1; }
  .card-open:has(.card-alternate):hover .card-proof,.card-open:has(.card-alternate):focus-visible .card-proof { opacity:0; }
  .card-open:hover .card-alternate-label,.card-open:focus-visible .card-alternate-label { opacity:1; }
}
.card-price,.purchase-caption,.quantity output,.bag-total { font-variant-numeric:tabular-nums; }
.product-grid { gap:30px 22px; }
.catalog-bottom { margin-top:28px; padding-top:22px; }
.shop-section { padding-bottom:70px; }

/* The full-width material composition stays intact; there is no pinned scroll. */
.study-section.manual-study .study-shell { height:clamp(640px,calc(100svh - 78px),780px); min-height:0; max-height:none; }
.study-frame,.study-frame.is-current { transform:none; transition:opacity calc(450ms * var(--motion)) var(--ease); }
.study-copy { top:18%; }
.study-copy h2 { font-size:clamp(72px,6.55vw,98px); }
.study-caption { max-width:390px; margin-top:26px; }
.study-caption p { max-width:35ch; }
.study-bottom { bottom:64px; }
.study-footnote { bottom:24px; }
.study-progress { display:none; }
.desk-section { padding-block:82px; }
.studio-section { padding-block:78px; }
.support-section { padding-block:74px; }

/* Keep the repaired purchase flow independently of the visual experiment. */
.checkout-dialog .dialog-heading { position:sticky; top:0; background:var(--paper); z-index:2; padding-block:12px; }
.bag-line { grid-template-columns:92px minmax(0,1fr) auto; }
.bag-line>div { min-width:0; }
.gallery-main>img { animation:none; }

@media(min-width:761px) and (max-width:1100px) {
  .hero h1 { font-size:clamp(69px,8.3vw,92px); }
  .hero-image-g2>img { width:145%; left:-3%; top:calc(50% - 40.78125vw); mask-image:linear-gradient(0deg,transparent,#000 16%,#000 85%,transparent); }
  .hero-content { padding-top:200px; }
  .hero-actions { gap:18px; }
  .hero-actions .button { min-width:195px; }
  .hero-browse { font-size:12px; }
  .product-grid,.product-grid[data-view=featured] { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .card-media { aspect-ratio:1; }
}
@media(min-width:761px) and (max-height:700px) {
  .hero { min-height:680px; }
  .hero-content { padding-top:165px; }
  .hero h1 { font-size:clamp(72px,7.8vw,100px); }
  .hero-inspect { bottom:120px; }
  .study-copy h2 { font-size:76px; }
  .study-copy>.section-kicker { margin-bottom:18px; }
}
@media(min-width:761px) and (max-width:899px) {
  .study-section.manual-study .study-shell { height:auto; }
  .study-copy { top:auto; }
  .study-copy h2 { font-size:67px; }
  .study-bottom { bottom:auto; }
  .study-footnote { bottom:auto; }
}
@media(max-width:760px) {
  /* Real flow replaces the old 900px canvas with absolute button positions. */
  .hero { height:auto; min-height:0; display:flex; flex-direction:column; }
  .hero-content { order:0; padding-top:118px; padding-bottom:0; width:100%; margin:0; pointer-events:auto; }
  .hero h1 { font-size:clamp(59px,17.4vw,92px); }
  .hero-intro { margin-bottom:23px; }
  .hero-description { margin-top:21px; font-size:14px; }
  .hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; margin-top:24px; }
  .hero-content .button { position:static; inset:auto; width:auto; min-width:156px; min-height:49px; margin:0; padding:12px 20px; font-size:13px; gap:23px; }
  .hero-browse { position:static; min-height:44px; font-size:11px; gap:10px; }
  .hero-stage { position:relative; inset:auto; order:1; height:340px; width:100%; margin-top:8px; }
  .hero-image { position:absolute; inset:0; height:100%; }
  .hero-image-g2>img:first-child { display:none; }
  .hero-image-g2 .mobile-hero-image { display:block; position:absolute; width:100%; height:100%; inset:0; object-fit:cover; max-width:none; }
  .hero-image-rank img { inset:0; width:100%; height:100%; object-fit:cover; mask-image:none; }
  .hero-image-rank:after { background:linear-gradient(0deg,#171816,transparent 24%,transparent 78%,#171816); }
  .hero-inspect { position:relative; inset:auto; order:2; margin:0 var(--gutter) 18px; align-self:flex-end; min-height:44px; padding:0; background:none; border-radius:0; }
  .hero-inspect strong { font-size:11px; }
  .hero-inspect small { font-size:9px; }
  .hero-inspect .inspect-circle { width:38px; height:38px; }
  .hero-bottom { order:3; position:relative; inset:auto; width:100%; padding-top:13px; padding-bottom:17px; }
  .hero-tabs { gap:24px; }
  .hero-tools { display:none; }
  .hero:after { display:none; }
  .shop-section { padding-block:54px; }
  .section-heading { gap:20px; }
  .section-heading>p { font-size:13px; }
  .product-grid,.product-grid[data-view=featured] { grid-template-columns:repeat(2,minmax(0,1fr)); gap:27px 14px; }
  .card-media,.product-grid[data-view=featured] .product-card:last-child .card-media { aspect-ratio:4/5; }
  .card-info { grid-template-columns:minmax(0,1fr) auto; gap:0 4px; padding-top:10px; position:relative; }
  .card-name { font-size:16px; }
  .card-price { font-size:12px; line-height:44px; }
  .card-sub { grid-column:1/-1; padding-right:44px; min-height:44px; font-size:11px; line-height:1.5; }
  .quick-add { grid-column:auto; grid-row:auto; position:absolute; width:40px; height:40px; right:0; bottom:0; margin:0; display:grid; place-items:center; border-radius:50%; box-shadow:inset 0 0 0 1px #0003; }
  .quick-add:after,.quick-add.is-added:after { content:none; }
  .card-alternate-label { left:8px; top:8px; font-size:8px; max-width:calc(100% - 16px); padding:4px 7px; }
  .catalog-bottom p { font-size:10px; }
  .catalog-bottom .text-link { font-size:11px; gap:10px; }
  .study-section.manual-study .study-shell { height:auto; min-height:0; }
  .study-top { padding-top:30px; }
  .study-copy { top:auto; padding-top:29px; }
  .study-copy h2 { font-size:64px; }
  .study-copy>.section-kicker { margin-bottom:17px; }
  .study-caption { margin-top:22px; min-height:95px; }
  .study-media { height:300px; margin-top:0; }
  .study-bottom { bottom:auto; padding-top:8px; gap:14px; }
  .study-footnote { bottom:auto; padding-top:18px; padding-bottom:25px; gap:8px; }
  .desk-section { padding-block:54px; gap:28px; }
  .studio-section { padding-block:54px; }
  .studio-layout { gap:28px; }
  .support-section { padding-block:54px; }
  .bag-dialog { padding-inline:18px; }
  .bag-line { grid-template-columns:62px minmax(0,1fr) auto; gap:12px; }
  .bag-line>img { width:62px; height:82px; }
  .bag-line h3 { font-size:16px; }
  .bag-line p { font-size:10px; }
  .bag-line .quantity { height:40px; gap:0; }
  .bag-line .quantity button { width:40px; min-width:40px; height:40px; }
  .bag-line .quantity output { min-width:22px; }
  .bag-line-right { font-size:12px; }
  .bag-line .remove-item { font-size:10px; }
  .checkout-dialog { padding:20px; }
  .checkout-dialog .dialog-heading { top:-20px; margin-top:-10px; padding-block:15px; }
  .checkout-dialog .dialog-heading h2 { font-size:30px; }
}
@media(max-width:360px) {
  .hero h1 { font-size:58px; }
  .hero-content .button { min-width:139px; padding-inline:16px; gap:16px; font-size:12px; }
  .hero-actions { gap:8px 13px; }
  .hero-description { font-size:13px; }
  .hero-browse { font-size:10px; gap:7px; }
  .hero-stage { height:300px; }
  .bag-line { grid-template-columns:54px minmax(0,1fr) auto; gap:9px; }
  .bag-line>img { width:54px; height:74px; }
  .study-copy h2 { font-size:59px; }
  .card-name { font-size:15px; }
}
@media(prefers-reduced-motion:reduce) {
  .card-media img,.study-frame,.hero-image { transition:none; }
  .button:active { scale:1; }
}
html[data-motion=reduce] .card-media img,html[data-motion=reduce] .study-frame,html[data-motion=reduce] .hero-image { transition:none; }
