/* Application photography and carton planning */
.campaign {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: #fff;
  background: #10131c;
  --campaign-zoom: 1;
  --campaign-lift: 0px;
}
.campaign-reel { position: relative; }
.campaign-stage { position: relative; isolation: isolate; overflow: hidden; background: #0c101b; }
.campaign-picture { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.campaign-frame { display: block; position: absolute; inset: 0; }
.campaign-mid { opacity: var(--veneer-mid, 0); }
.campaign-flat { opacity: var(--veneer-flat, 0); }
.campaign-picture img {
  width: 100%; height: 100%; object-fit: cover; object-position: 76% 50%;
  transform: scale(var(--campaign-zoom)); transform-origin: 81% 53%;
}
.campaign-stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #090e1ac9, #090e1a85 32%, transparent 58%);
}
.campaign-inner {
  min-height: clamp(425px, 40.5vw, 780px); display: flex; align-items: center;
  padding-block: clamp(2.4rem, 5vw, 6rem);
}
.campaign-copy { width: min(45%, 38rem); transform: translateY(var(--campaign-lift)); }
.campaign-kicker {
  display: flex; align-items: center; gap: .75rem; color: #e7e8ed;
  font-size: .88rem; font-weight: 650; letter-spacing: .09em;
}
.campaign-kicker::before { content: ""; width: 2rem; height: 3px; flex: none; background: #f45c41; }
.campaign-copy h1 {
  margin: 1rem 0 1.05rem; font-size: clamp(3rem, 5vw, 6.25rem);
  font-weight: 730; line-height: 1.08; letter-spacing: -.055em;
}
.campaign-lede { max-width: 32rem; color: #e1e4eb; font-size: clamp(1rem, 1.12vw, 1.16rem); line-height: 1.65; }
.campaign-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.35rem; margin-top: 1.5rem; }
.campaign-actions a:last-child, .campaign-process { color: #fff; text-decoration: underline; text-underline-offset: .32rem; }
.campaign-feature { position: relative; z-index: 1; background: #111621; border-top: 1px solid #49515d; }
.campaign-feature-inner { display: flex; align-items: center; gap: 1.1rem; padding-block: .8rem; }
.campaign-feature .pack-link {
  width: clamp(70px, 6vw, 100px); aspect-ratio: 2 / 3; flex: none;
  border-radius: 3px; padding: 2px;
}
.campaign-feature-name small { color: #bfc9d8; font-size: .9rem; }
.campaign-feature-name a { display: inline-block; font-size: clamp(1.05rem, 1.75vw, 1.55rem); font-weight: 670; }
.campaign-feature-name a:hover { text-decoration: underline; }
.campaign-process { flex: none; margin-left: auto; font-size: 1rem; font-weight: 600; }
@media (min-width: 701px) and (min-height: 490px) and (prefers-reduced-motion: no-preference) {
  .campaign-motion { --reel-travel: clamp(150px, 34vh, 300px); }
  .campaign-motion .campaign-stage { position: sticky; top: 0; }
  .campaign-motion .campaign-reel::after { content: ""; display: block; height: var(--reel-travel); }
  .campaign-motion .campaign-feature { margin-top: calc(0px - var(--reel-travel)); }
}
@media (max-width: 700px) {
  .campaign-stage { display: flex; flex-direction: column; }
  .campaign-picture { display: block; position: relative; inset: auto; z-index: auto; width: 100%; aspect-ratio: 1.78; }
  .campaign-picture img { object-position: 62% 48%; }
  .campaign-stage::after { display: none; }
  .campaign-inner { min-height: auto; padding-block: 1.65rem 2rem; }
  .campaign-copy { width: 100%; transform: none; }
  .campaign-copy h1 { font-size: clamp(2.5rem, 7.5vw, 3.65rem); margin-block: .65rem .8rem; }
  .campaign-kicker, .campaign-feature-name small { font-size: .875rem; }
  .campaign-actions { margin-top: 1rem; }
  .campaign-feature-inner { gap: .8rem; }
}
@media (max-width: 480px) {
  .campaign-picture { aspect-ratio: 1.49; }
  .campaign-feature-inner { display: grid; grid-template-columns: 72px 1fr; gap: 0 .85rem; }
  .campaign-feature .pack-link { width: 72px; grid-row: span 2; }
  .campaign-feature-name { align-self: end; }
  .campaign-process { margin: .2rem 0 0; align-self: start; justify-self: start; font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  .campaign-picture img, .campaign-copy { transform: none; }
}
.project-index{padding-block:clamp(2.6rem,4.5vw,4.5rem)}.project-index .section-head,.process-head{margin-bottom:1.2rem}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.65rem,1.35vw,1.15rem)}
.project-tile{min-width:0;position:relative;isolation:isolate;overflow:hidden;border-radius:5px}.project-tile h3{font-size:clamp(1.1rem,1.5vw,1.53rem);line-height:1.24;letter-spacing:-.03em}.project-tile p{font-size:.92rem;margin-top:.3rem;line-height:1.45}
.project-tile.feature{aspect-ratio:1.68;color:white;display:flex;align-items:flex-end;background:#172439}.project-tile.feature img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.project-tile.feature:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#101c2bee 0%,#111d2dad 20%,#11203500 69%)}.project-tile.feature>div{padding:1.05rem 1.15rem}.project-tile.compact{display:flex;align-items:center;background:#f1f3f4;gap:.8rem;padding:.5rem}.project-tile.compact img{width:24%;min-width:65px;aspect-ratio:1;object-fit:cover;border-radius:2px}.project-tile.compact h3{font-size:1.07rem}.project-tile.compact p{color:#526071;font-size:.88rem}.project-tile:hover h3{text-decoration:underline;text-underline-offset:4px}
.process-area{padding:clamp(2.2rem,4.1vw,4.6rem) 0;background:#f3f4f3}.process-head,.process-foot,.process-product,.gallery-controls,.carton-math{display:flex;align-items:center}.process-head,.process-foot{justify-content:space-between;gap:1rem}.process-head h2{margin-top:.65rem}.process-product{align-items:center;gap:.6rem;flex-shrink:0}.process-product img{width:42px;height:62px;object-fit:contain}.process-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.8rem,1.65vw,1.6rem);padding:0;margin:0;list-style:none}.process-list li{min-width:0;background:#fff;overflow:hidden;border-radius:4px;border:1px solid #dfe3e4}.process-list li>.step-photo,.step-pair{width:100%;aspect-ratio:1.18;background:#e8e9e7}.step-photo{object-fit:cover}.step-copy{padding:.9rem 1rem 1.1rem}.step-copy h3{font-size:1.14rem;line-height:1.3;display:flex;align-items:center;gap:.55rem}.step-copy h3 span{flex:none;display:inline-grid;place-items:center;background:#233951;color:#fff;border-radius:50%;width:1.5rem;height:1.5rem;font:650 .83rem/1 Arial,sans-serif}.step-copy p{color:#4d5c6e;font-size:1rem;margin-top:.45rem}.process-foot{margin-top:.9rem;align-items:baseline}.process-foot a{flex-shrink:0}
.carton-tag{border-top:1px solid #e4e6eb;padding-top:.45rem;margin-top:auto;margin-bottom:.6rem;color:#37455a;font-size:.86rem}.card-info .under{margin-top:0}
.product-gallery{min-width:0}.product-description dl{gap:clamp(.8rem,2vw,2.1rem);flex-wrap:wrap}.product-description dd{font-size:1rem}.gallery-scene,.gallery-pack{position:relative;aspect-ratio:1.3;background:#edf0f3;border-radius:6px;overflow:hidden}.gallery-scene>.context-photo{height:100%;width:100%;object-fit:cover}.gallery-controls{gap:.4rem;flex-wrap:wrap;margin-top:.6rem}.gallery-controls button{border:1px solid #aeb8c3;background:white;color:#1c304c;border-radius:3px;min-height:40px;padding:.3rem .9rem;font-size:.92rem;font-weight:600;line-height:1.3}.gallery-controls button[aria-pressed=true]{background:#1b2b47;color:white;border-color:#1b2b47}.gallery-caption{color:#586577;font-size:.86rem;margin-top:.45rem}.gallery-caption span{font-weight:620}.carton-tool{margin-top:1.5rem;padding:1.1rem 1.2rem;border-top:3px solid #264779;background:white;border-radius:2px}.carton-tool h3{font-size:1.15rem}.carton-tool p{font-size:.95rem;margin:.5rem 0 .85rem}.carton-math{gap:.8rem;align-items:flex-end;flex-wrap:wrap}.carton-math label{width:6.25rem}.carton-math>span{padding:.55rem 0;color:#586575;font-family:Arial,sans-serif}.carton-math output{display:block;font-weight:720;font-size:1.5rem;line-height:1.4}.carton-tool .under{margin-top:.8rem}
@media(max-width:900px){.project-tile.feature{aspect-ratio:1.22}.project-tile.compact p{display:none}.process-list li>.step-photo,.step-pair{aspect-ratio:1.12}.head nav{gap:1rem;font-size:.93rem}}
@media(max-width:700px){.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-tile.feature,.project-tile.compact{aspect-ratio:1.28;display:flex;align-items:flex-end;padding:0;color:white;background:#1a293c}.project-tile.compact img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;border-radius:0}.project-tile.compact:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#101c2bee,transparent 70%);z-index:-1}.project-tile.feature>div,.project-tile.compact>div{padding:.7rem}.project-tile.compact h3,.project-tile.feature h3{font-size:1.04rem}.project-tile.feature p,.project-tile.compact p{display:none}.process-head{align-items:flex-start;flex-wrap:wrap}.process-list{grid-template-columns:1fr}.process-list li{display:grid;grid-template-columns:38% 1fr}.process-list li>.step-photo{height:100%;aspect-ratio:1}.step-copy{padding:.8rem}.step-copy h3{font-size:1.04rem}.step-copy p{font-size:.95rem}.process-foot{flex-wrap:wrap}.product-main{gap:1.25rem}.gallery-scene,.gallery-pack{aspect-ratio:1.46}.card-info .carton-tag{font-size:.8rem}.head nav{gap:1.3rem}.head nav a{text-align:center}.carton-tool{max-width:100%}}
@media(max-width:375px){.project-tile.feature,.project-tile.compact{aspect-ratio:1.1}.head nav{gap:.65rem}.process-list li{grid-template-columns:32% 1fr}.carton-math{gap:.5rem}}

.paired-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46%;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  background: #edf0f3;
}
.card-context { aspect-ratio: 1.48; }
.card-scene, .pack-link { display: block; min-width: 0; min-height: 0; }
.card-scene img, .step-pair > .step-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pack-link {
  position: relative;
  overflow: hidden;
  padding: clamp(3px, .45vw, 8px);
  background: white;
  cursor: zoom-in;
}
.pack-link > img { width: 100%; height: 100%; object-fit: contain; }
.paired-media > .pack-link { border-left: 1px solid #dce1e6; }
.card-scene:focus-visible, .pack-link:focus-visible { outline-offset: -3px; z-index: 1; }
.zoom-mark {
  pointer-events: none;
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 24px;
  height: 24px;
  border: 1px solid #b2bcc6;
  border-radius: 50%;
  background: #fffffff2;
  color: #233951;
}
.zoom-mark::before, .zoom-mark::after { content: ""; position: absolute; }
.zoom-mark::before { width: 8px; height: 8px; border: 1.7px solid; border-radius: 50%; left: 5px; top: 4px; }
.zoom-mark::after { width: 7px; height: 2px; left: 13px; top: 14px; transform: rotate(45deg); background: currentColor; }
.pack-link:hover .zoom-mark, .pack-link:focus-visible .zoom-mark { color: white; background: #233951; }
.gallery-pack > .pack-link { height: 100%; }
.gallery-scene.paired-media { grid-template-columns: minmax(0, 1fr) 45%; }
.step-pair { grid-template-columns: minmax(0, 1fr) 43%; }
.process-list li > .step-photo, .step-pair { aspect-ratio: 1.48; }
.step-product { margin-top: .5rem; color: #294361; font-size: .9rem; font-weight: 650; }
#pack-viewer {
  width: min(94vw, 48rem);
  max-width: 100vw;
  max-height: 94vh;
  max-height: 94dvh;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #18253d;
  background: white;
  box-shadow: 0 16px 70px #08132455;
}
#pack-viewer::backdrop { background: #111b2bd9; }
#pack-viewer[open] { display: flex; flex-direction: column; }
.pack-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem 1rem;
  border-bottom: 1px solid #dce1e6;
}
.pack-viewer-head strong { overflow-wrap: anywhere; }
.pack-viewer-head button {
  min-height: 44px;
  padding: .4rem .8rem;
  border: 1px solid #aeb8c3;
  border-radius: 4px;
  background: white;
  color: #20364e;
}
#pack-viewer > img { min-height: 0; width: 100%; height: 76vh; height: 76dvh; padding: .5rem; object-fit: contain; }
@media (max-width: 700px) {
  .process-list li.application-step { display: block; }
  .step-pair { aspect-ratio: 1.55; }
  .process-list li > .step-photo { aspect-ratio: 1; }
}
@media (max-width: 560px) {
  .card-grid, .related .card-grid { grid-template-columns: minmax(0, 1fr); }
}
