/* The frame is the main visual. The source portrait stays next to the finished print. */
.catalog-home .hero {
  grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr);
  gap:clamp(24px,4.1vw,72px);
  padding-block:clamp(32px,4.2vw,72px);
  min-height:0;
}
.catalog-home .hero-copy { max-width:none; }
.catalog-home .hero h1 {
  font-size:clamp(48px,5.25vw,90px);
  line-height:1;
  letter-spacing:-.067em;
  word-spacing:.02em;
  margin:0 0 clamp(16px,1.5vw,26px);
}
.catalog-home .hero .lead {
  max-width:41ch;
  font-size:clamp(16px,1.24vw,21px);
  line-height:1.53;
  letter-spacing:-.018em;
  color:#363b35;
}
.catalog-home .hero .actions { margin-top:clamp(18px,1.9vw,32px); gap:22px; }
.catalog-home .hero-copy .meta { margin-top:18px; line-height:1.65; color:#525a51; }
.catalog-home .hero-copy .meta strong { color:#111; font-size:1.12em; }
.catalog-studio { margin:0; overflow:hidden; border-radius:14px; background:#e8f1e5; }
.catalog-set {
  position:relative;
  isolation:isolate;
  width:100%;
  aspect-ratio:1.72;
  overflow:hidden;
  background:radial-gradient(ellipse at 30% 30%,#f6faef,#e8f1e5 60%,#c9d9c5);
}
.catalog-poster { position:absolute; top:42%; width:100%; aspect-ratio:3/2; transform:translateY(-42%); }
.catalog-still { display:block; width:100%; height:auto; max-width:none; }
.catalog-print-plane { position:absolute; inset:0; transform:scale(var(--photo-ratio)); transform-origin:0 0; }
.catalog-print-plane img {
  display:block;
  width:1048px;
  max-width:none;
  height:442px;
  transform-origin:0 0;
  transform:matrix3d(.779872236,-.042488017,0,-.000084577,-.028490788,.856413442,0,-.000004825,0,0,1,0,290,307,0,1);
}
.catalog-canvas,.catalog-model { position:absolute; inset:0; width:100%; height:100%; }
.catalog-model { display:grid; place-items:center; perspective:850px; }
.catalog-thin-frame {
  width:74%; aspect-ratio:1.65; display:grid; place-items:center; background:#f5f1e4;
  border:clamp(6px,.65vw,10px) ridge #282925;
  box-shadow:3px 4px 0 #171816,6px 7px 0 #222320,11px 16px 21px #1c301e40,inset 2px 2px 7px #24221d32;
  transform:rotateY(var(--catalog-angle,-14deg)) rotateX(5deg) rotateZ(-2deg);
}
.catalog-texture { display:block; width:86%; height:auto; }
.catalog-canvas { visibility:hidden; opacity:0; pointer-events:none; filter:drop-shadow(0 9px 10px #14231133); }
.catalog-set[data-mode] .catalog-poster { visibility:hidden; }
.catalog-set[data-mode="gpu"] .catalog-canvas { visibility:visible; opacity:1; }
.catalog-caption,.catalog-source,.catalog-turn,.catalog-view-controls { display:flex; align-items:center; }
.catalog-caption { position:relative; justify-content:space-between; min-height:61px; gap:10px; padding:8px clamp(12px,1.25vw,22px); border-top:1px solid #cddacb; }
.catalog-source { gap:12px; padding:0; border:0; background:transparent; font-size:13px; font-weight:800; color:#273627; text-decoration:underline; text-underline-offset:3px; }
.catalog-source-thumb {
  position:relative; display:block; overflow:hidden; flex:none; box-sizing:border-box; width:48px; height:54px; border:3px solid white;
  margin-top:-12px; transform:rotate(-4deg); box-shadow:0 2px 3px #27332629;
}
.catalog-source-thumb img,.catalog-source-detail img {
  position:absolute; width:156%; height:auto; max-width:none; top:0; left:-27%;
}
.catalog-source-detail { position:absolute; bottom:4%; left:3%; width:22%; aspect-ratio:.87; overflow:hidden; border:4px solid white; transform:rotate(-3deg); box-shadow:1px 3px 9px #1a2b1b42; }
.catalog-turn { gap:7px; justify-content:center; min-height:40px; padding:6px 13px; border:1px solid #a3b69f; border-radius:100px; background:#f5f9f3; color:#111; font-size:13px; font-weight:800; line-height:1.2; }
.catalog-turn:hover { background:white; border-color:#687b65; }
.catalog-turn svg { flex:none; }
.catalog-view-controls { gap:13px; padding:8px 16px 12px; border-top:1px solid #cddacb; }
.catalog-view-controls label,.catalog-view-controls output { font-size:13px; white-space:nowrap; }
.catalog-view-controls input { flex:1; min-width:0; accent-color:#345b29; cursor:pointer; }
.catalog-view-controls output { min-width:4ch; text-align:right; font-variant-numeric:tabular-nums; }
.catalog-studio [hidden] { display:none; }

.catalog-home .catalog-studio,
.catalog-home .catalog-set {
  background:transparent;
  border:0;
  border-radius:0;
  overflow:visible;
}
.catalog-home .catalog-set { container-type:inline-size; }
.catalog-home .catalog-frame-action {
  position:absolute;
  inset:7% 9%;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
}
.catalog-home :is(.catalog-canvas,.catalog-model) {
  transform:translate(var(--float-x,0%), var(--float-y,0%)) rotate(var(--float-roll,0deg));
}
.catalog-home .catalog-canvas {
  /* Leave room for the near corner as the frame tilts. */
  inset:-13.5% 3% auto;
  width:94%;
  height:127%;
  transform:translate(calc(var(--float-x,0%) / .94), calc(var(--float-y,0%) / 1.27)) rotate(var(--float-roll,0deg));
  filter:drop-shadow(0 13px 12px rgb(0 0 0 / .13));
}
.catalog-home .catalog-thin-frame {
  position:relative;
  width:83%;
  border:clamp(6px,1.9cqi,16px) ridge #252526;
  background:linear-gradient(140deg,#f7f6f2,#efeeeb);
  box-shadow:2px 2px 0 #222, 4px 4px 0 #242424, 0 15px 21px rgb(0 0 0 / .13), inset 1px 2px 4px rgb(0 0 0 / .16);
  transform:rotateZ(-2deg) rotateX(calc(-5.7deg - var(--catalog-pitch,0deg))) rotateY(var(--catalog-angle,-12deg));
}
.catalog-home .catalog-thin-frame::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(110deg,transparent 34%,rgb(255 255 255 / .07) 43%,rgb(255 255 255 / .22) 49%,rgb(255 255 255 / .09) 55%,transparent 68%);
  background-size:230% 100%;
  background-position:var(--light-x,50%) center;
}
.catalog-home .catalog-caption {
  width:85%;
  min-height:48px;
  margin:clamp(6px,1vw,16px) auto 0;
  padding:0;
  border:0;
}
.catalog-home .catalog-source { min-height:44px; color:#474747; }
.catalog-home .catalog-source-thumb {
  width:33px;
  height:38px;
  margin:0;
  border-width:2px;
  box-shadow:0 0 0 1px #dededb, 0 2px 3px rgb(0 0 0 / .12);
}

.catalog-home .processBand {
  background:#f5f7f3;
  border-top:1px solid #e2e8df;
  border-bottom:1px solid #e2e8df;
  padding-block:clamp(25px,3vw,48px);
}
.catalog-home .processBand h2,.catalog-home>.section h2 {
  font-size:clamp(28px,2.75vw,44px); line-height:1.12; letter-spacing:-.058em;
}
:is(.catalog-home,.catalog-guide) .steps { margin-top:clamp(18px,2vw,30px); gap:clamp(14px,2.1vw,36px); }
:is(.catalog-home,.catalog-guide) .step {
  display:grid;
  align-content:center;
  align-items:start;
  grid-template-columns:clamp(72px,7.2vw,122px) minmax(0,1fr);
  grid-template-rows:auto auto;
  gap:6px clamp(11px,1.2vw,20px);
}
.catalog-step-image {
  grid-column:1; grid-row:1/span 2;
  display:grid; place-items:center; align-self:center; width:100%; aspect-ratio:1;
  border-radius:8px; overflow:hidden; background:#e1eadd;
}
.catalog-step-image img { display:block; max-width:none; }
.catalog-step-photo { width:57%; height:76%; object-fit:cover; border:3px solid #fff; transform:rotate(-7deg); box-shadow:0 3px 5px #1222102b; }
.catalog-step-crop { position:relative; width:100%; height:100%; overflow:hidden; }
.catalog-step-crop img { position:absolute; top:50%; left:50%; height:117%; width:auto; transform:translate(-50%,-50%); }
.catalog-step-frame { display:grid; place-items:center; width:81%; aspect-ratio:1.65; background:#f2efe0; border:3px solid #21221f; box-shadow:1px 3px 5px #1729133a; transform:rotate(-4deg); }
.catalog-step-frame img { width:84%; height:auto; }
:is(.catalog-home,.catalog-guide) .stepnum {
  align-self:end; grid-column:2; grid-row:1; width:23px; height:23px; border:1px solid #aeb9ab; border-radius:50%; color:#273226; font-size:12px; background:transparent;
}
:is(.catalog-home,.catalog-guide) .step > div:last-child { grid-column:2; grid-row:2; }
:is(.catalog-home,.catalog-guide) .step h3 { font-size:clamp(15px,1.2vw,20px); line-height:1.22; letter-spacing:-.035em; }
:is(.catalog-home,.catalog-guide) .step p { margin-top:3px; font-size:clamp(13px,1vw,16px); line-height:1.45; color:#4b554a; }

.catalog-home>.section { padding-block:clamp(35px,4.5vw,72px); }
.catalog-home .home-faq { padding-top:clamp(18px,2vw,32px); }
.catalog-home .home-faq > .zone {
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.2fr);
  gap:clamp(24px,5vw,80px);
  align-items:start;
}
.home-faq-list { border-top:1px solid var(--line); }
.home-faq-list .faq { padding:0; }
.home-faq-list .faq summary {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  list-style:none;
  padding:17px 4px 17px 0;
  font-size:clamp(16px,1.22vw,19px);
  font-weight:800;
  letter-spacing:-.025em;
  cursor:pointer;
}
.home-faq-list summary::-webkit-details-marker { display:none; }
.home-faq-list summary::after {
  content:"";
  flex:none;
  width:8px;
  height:8px;
  margin-right:3px;
  border:solid currentColor;
  border-width:0 1.5px 1.5px 0;
  transform:translateY(-2px) rotate(45deg);
}
.home-faq-list [open] summary::after { transform:translateY(2px) rotate(225deg); }
.home-faq-list .faq p { max-width:62ch; margin:0; padding:0 24px 19px 0; }
.catalog-home .occasion-list { gap:0 clamp(20px,3vw,48px); margin-top:20px; border:0; }
.catalog-home .occasion-list a,.catalog-home .occasion-list a:not(:nth-child(3n+1)) {
  gap:12px; border:0; border-bottom:1px solid #d7dfd3; text-decoration:none;
  padding:16px 2px; min-height:64px; font-size:clamp(15px,1.15vw,18px); letter-spacing:-.023em;
}
.catalog-home .occasion-list a::after { content:""; flex:none; margin-left:auto; width:7px; height:7px; margin-right:4px; border-top:1.5px solid; border-right:1.5px solid; transform:rotate(45deg); }
.catalog-home .occasion-list a:hover { text-decoration:underline; text-underline-offset:4px; }
.catalog-home .occasion-list .ico { width:23px; height:23px; color:#30462e; }

:is(.catalog-product,.catalog-occasion) .pagebody {
  display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
  align-items:start; gap:0 clamp(24px,4.9vw,80px);
}
:is(.catalog-product,.catalog-occasion) .pagebody > .crumb { grid-column:1/-1; grid-row:1; margin-bottom:clamp(16px,1.8vw,29px); }
:is(.catalog-product,.catalog-occasion) .pagebody > .split { display:contents; }
.catalog-product .pagehead { grid-column:2; grid-row:2; margin:0 0 17px; }
.catalog-product .pagehead h1,.catalog-occasion .pagehead h1 { font-size:clamp(40px,4.1vw,70px); }
.catalog-product .split>.zone:first-child { grid-column:1; grid-row:2/span 2; }
.catalog-product .split>.zone:last-child { grid-column:2; grid-row:3; }
.catalog-product .split>.zone:last-child .panel,.catalog-occasion .panel {
  padding:0; border:0; border-radius:0; box-shadow:none; background:none;
}
.catalog-product .split>.zone:last-child h2 { font-size:clamp(18px,1.6vw,25px); }
.catalog-product .bigprice { font-size:clamp(31px,2.8vw,47px); line-height:1; font-weight:800; letter-spacing:-.055em; }
.catalog-product .pagebody > .section { grid-column:1/-1; width:min(100%,830px); margin:clamp(24px,4.1vw,67px) auto 0; padding:0; }
.catalog-product .stage:is(.detail,.original) { border:0; border-radius:14px; background:#e8f1e5; aspect-ratio:1.5; }
.catalog-product .stage:is(.detail,.original)::before,.catalog-product .stage:is(.detail,.original)::after { display:none; }
.catalog-product .stage.detail .note { width:100%; transform:scale(1.3) rotate(-6deg); }
.catalog-product .stage.original img { height:78%; border:4px solid white; border-radius:2px; }
.catalog-product .stage-caption { color:#172915; background:#f2f7ef; padding:3px 9px; border-radius:4px; }
.catalog-product .pills { margin-top:12px; }
.catalog-product .pills .pill { background:white; color:#263024; border-color:#cfd8cc; font-size:13px; }
.catalog-product .pills .pill[aria-pressed=true] { color:white; background:#111; border-color:#111; }
.catalog-occasion .pagebody { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); }
.catalog-occasion .pagehead { grid-column:1; grid-row:2; margin:0 0 24px; }
.catalog-occasion .split>.zone:first-child { grid-column:1; grid-row:3; }
.catalog-occasion .split>.zone:last-child { grid-column:2; grid-row:2/span 2; }
.catalog-occasion .panel { border-top:1px solid #d7dfd3; padding-top:20px; }
.catalog-occasion .panel h2 { font-size:clamp(21px,1.75vw,30px); }
.catalog-occasion .panel p { font-size:16px; line-height:1.6; }
.catalog-occasion .meta { margin-top:17px; }
.catalog-occasion .actions { margin-top:12px; }
.catalog-guide .pagebody { max-width:1080px; }
.catalog-guide .pagebody>.zone .panel { padding:0; border:0; background:transparent; }
.catalog-guide .steps { margin-top:0; }
.catalog-guide .section .panel { background:#e8f1e5; border:0; padding:clamp(20px,3vw,42px); }
.catalog-guide .sampleguide { align-items:center; gap:clamp(16px,3vw,44px); grid-template-columns:minmax(110px,24%) minmax(0,1fr); }
.catalog-guide .sampleguide h3 { font-size:clamp(22px,2.25vw,35px); }
.catalog-guide .sampleguide p { max-width:51ch; }

@media(min-width:761px) {
  .catalog-guide .section .panel {
    display:grid; grid-template-columns:minmax(160px,26%) minmax(0,1fr);
    grid-template-rows:1fr auto 1fr; align-items:center; gap:15px clamp(26px,4vw,64px);
  }
  .catalog-guide .sampleguide { display:contents; }
  .catalog-guide .sampleguide .bigphoto { grid-column:1; grid-row:1/span 3; width:100%; max-width:none; }
  .catalog-guide .sampleguide .tight { grid-column:2; grid-row:1; align-self:end; }
  .catalog-guide .section .panel > :is(.quiet,.btn) { grid-column:2; margin:0; }
  .catalog-guide .section .panel > .btn { align-self:start; justify-self:start; }
}
@media(max-width:1000px) {
  .catalog-home .hero { gap:24px; }
  :is(.catalog-home,.catalog-guide) .step { grid-template-columns:minmax(54px,6vw) minmax(0,1fr);gap:5px 10px; }
  .catalog-product .pagehead h1,.catalog-occasion .pagehead h1 { font-size:clamp(33px,4.3vw,44px); }
}
@media(max-width:760px) {
  .catalog-home .hero { display:grid; grid-template-columns:1fr; gap:17px; padding-block:29px 32px; }
  .catalog-home .hero>.zone:first-child,.catalog-home .hero-copy { display:contents; }
  .catalog-home .intro { order:0; }
  .catalog-home .hero>.zone:last-child { order:1; }
  .catalog-home .hero-actions { order:2; }
  .catalog-home .hero>.zone:first-child>.uxnote { order:3; }
  .catalog-home .hero h1 { font-size:clamp(47px,9.7vw,66px); margin-bottom:13px; }
  .catalog-home .hero .lead { font-size:16px; }
  .catalog-home .hero .actions { margin:0; }
  .catalog-home .hero-copy .meta { margin-top:13px; }
  .catalog-home .catalog-caption { width:min(100%,max(85%,285px)); }
  .catalog-home .home-faq > .zone { grid-template-columns:1fr; gap:20px; }
  .catalog-set { aspect-ratio:1.76; }
  .catalog-caption { min-height:50px; padding:6px 11px; }
  .catalog-source { gap:8px; font-size:12px; }
  .catalog-source-thumb { width:38px;height:43px; margin-top:-8px; }
  .catalog-turn { font-size:12px; min-height:36px; padding:6px 11px; }
  :is(.catalog-home,.catalog-guide) .steps { grid-template-columns:1fr; gap:14px; }
  :is(.catalog-home,.catalog-guide) .step { grid-template-columns:76px minmax(0,1fr); column-gap:16px; row-gap:4px; }
  :is(.catalog-home,.catalog-guide) .step h3 { font-size:17px; }
  .catalog-home .occasion-list { grid-template-columns:1fr 1fr; gap:0 20px; }
  .catalog-home .occasion-list a { min-height:54px; }
  :is(.catalog-product,.catalog-occasion) .pagebody { display:block; }
  :is(.catalog-product,.catalog-occasion) .pagebody>.split { display:flex; flex-direction:column; gap:22px; }
  :is(.catalog-product,.catalog-occasion) .split>.zone { width:100%; }
  :is(.catalog-product,.catalog-occasion) .pagehead { margin-bottom:18px; }
  :is(.catalog-product,.catalog-occasion) .pagehead h1 { font-size:clamp(37px,8vw,53px); }
  .catalog-product .split>.zone:last-child .panel { border-top:1px solid #d7dfd3; padding-top:18px; }
  .catalog-occasion .split>.zone:last-child { order:-1; }
  .catalog-product .pills { gap:6px; }
  .catalog-product .pills .pill { padding-inline:10px; }
  .catalog-guide .sampleguide { grid-template-columns:90px minmax(0,1fr); gap:12px; }
}
@media(max-width:390px) {
  .catalog-home .occasion-list { grid-template-columns:1fr; }
  .catalog-home .hero h1 { font-size:clamp(42px,11vw,47px); }
  .catalog-view-controls { gap:8px; padding-inline:10px; }
  .catalog-guide .sampleguide { grid-template-columns:1fr; }
  .catalog-guide .sampleguide .bigphoto { max-width:135px; }
}
