/* =====================================================================
   Уфафотохим · article.css — типографика статей и вёрстка изображений
   Классы: .art-body, figure.art-fig (--hero/--right/--left/--wide)
   ===================================================================== */

.art-body{max-width:76ch;margin-inline:auto;font-size:17.5px;line-height:1.78}
.art-body>p{margin-bottom:1.15em;color:var(--ink)}
.art-body h2{
  font-size:clamp(24px,3vw,34px);margin:1.6em 0 .6em;letter-spacing:-.02em;
  padding-top:.6em;border-top:1px solid var(--line);
}
.art-body h2:first-child{border-top:0;padding-top:0;margin-top:0}
.art-body h3{font-size:clamp(19px,2.1vw,24px);margin:1.4em 0 .5em}
.art-body h4{font-size:18px;margin:1.2em 0 .4em}
.art-body ul,.art-body ol{margin:0 0 1.2em;padding-left:1.3em}
.art-body li{margin-bottom:.5em}
.art-body li::marker{color:var(--dev,var(--accent))}
.art-body a{color:var(--dev,var(--accent));font-weight:600;
  border-bottom:1px solid color-mix(in srgb,var(--dev,var(--accent)) 35%,transparent);transition:.2s}
.art-body a:hover{border-bottom-color:currentColor}
.art-body b,.art-body strong{font-weight:700}
.art-body i,.art-body em{color:var(--muted)}
.art-body hr{border:0;border-top:1px solid var(--line);margin:2.2em 0}
.art-body blockquote{
  margin:1.6em 0;padding:18px 24px;border-left:3px solid var(--dev,var(--accent));
  background:var(--accent-soft);border-radius:0 var(--r-s) var(--r-s) 0;
  color:var(--muted);font-size:16px;
}
.art-body blockquote p:last-child{margin:0}

/* ---------- изображения в статьях ---------- */
.art-fig{margin:2.2em 0;position:relative}
.art-fig img{
  width:100%;display:block;border-radius:var(--r-m);border:1px solid var(--line);
  box-shadow:var(--shadow);background:var(--panel);
}
.art-fig figcaption{
  margin-top:12px;color:var(--faint);font:500 12px/1.6 var(--ff-mono);
  letter-spacing:.06em;
}
.art-fig figcaption::before{
  content:"";display:inline-block;width:16px;height:1px;margin-right:10px;
  background:var(--dev,var(--accent));vertical-align:4px;
}
/* hero-кадр статьи — во всю ширину контейнера */
.art-fig--hero{margin:0 0 2.4em}
.art-fig--hero img{border-radius:var(--r-l)}
/* обтекание на широких экранах */
@media (min-width:900px){
  .art-fig--right,.art-fig--left{width:44%;margin-top:.6em;margin-bottom:1.2em}
  .art-fig--right{float:right;margin-left:2.2em}
  .art-fig--left{float:left;margin-right:2.2em}
  .art-fig--wide{width:56%}
  .art-body::after{content:"";display:block;clear:both}
  .art-fig--right img,.art-fig--left img{box-shadow:0 12px 30px rgba(0,0,0,.14)}
}
@media (max-width:899px){
  .art-fig--right,.art-fig--left,.art-fig--wide{width:100%;float:none;margin:1.8em 0}
}
/* Крупные самостоятельные иллюстрации по центру статьи (например, сцены 2 и 8). */
.art-fig--center{width:100%;max-width:900px;float:none;margin:2.2em auto}
@media (max-width:899px){
  .art-fig--center{width:100%;max-width:100%;margin:1.8em auto}
}
/* Сюжетные кадры статьи о промывке чередуются справа/слева; на узких экранах встают в поток. */
.art-body--final-wash h2,.art-body--final-wash h3{clear:both}
@media (min-width:900px){
  .art-body--final-wash .art-fig--compact{width:42%;max-width:360px;margin:.45em 0 1.25em;clear:none}
  .art-body--final-wash .art-fig--compact.art-fig--right{float:right;margin-left:2em;margin-right:0}
  .art-body--final-wash .art-fig--compact.art-fig--left{float:left;margin-right:2em;margin-left:0}
}
@media (max-width:899px){
  .art-body--final-wash .art-fig--compact{width:min(100%,420px);max-width:420px;float:none;clear:both;margin:1.5em auto 1.8em}
}
@media (max-width:520px){
  .art-body--final-wash .art-fig--compact{width:min(100%,360px);max-width:360px}
}
/* узкая вертикальная полоса (ступенчатый тест): тонкая колонка справа от текста,
   как в исходной вёрстке col-sm-3, а не кадр во всю ширину */
@media (min-width:900px){
  .art-fig--right.art-fig--strip{width:232px}
}
@media (max-width:899px){
  .art-fig--strip{width:min(240px,64%);float:none;margin:0 auto 1.8em}
}

/* ---------- шапка статьи ---------- */
.art-head{margin-bottom:clamp(26px,3.4vw,44px)}
.art-head h1{font-size:clamp(30px,4.6vw,56px);letter-spacing:-.025em;margin:0 0 14px}
.art-head .lead{margin:0}
.art-head .art-title-stacked span{display:block}
.art-head .art-title-stacked .art-title-stacked__bridge{
  margin:.12em 0 .16em;font-family:var(--ff-body);font-size:.48em;font-weight:500;
  line-height:1.35;letter-spacing:.12em;text-transform:uppercase;color:var(--dev,var(--accent));
}
@media(max-width:600px){
  .art-head .art-title-stacked{font-size:clamp(29px,8vw,42px)}
  .art-head .art-title-stacked .art-title-stacked__bridge{font-size:.42em}
}

/* ---------- врезка «коротко» ---------- */
.art-aside{
  margin:2.4em 0;padding:22px 26px;background:var(--panel);border:1px solid var(--line);
  border-radius:var(--r-m);
}
.art-aside h3{margin:0 0 .7em;font-size:19px}
.art-aside ul{margin:0}


/* Универсальная карусель: равномерное белое паспарту, цветное светлое поле, тёмный Darkroom. */
.customer-gallery{--gallery-radius:var(--r-m);--gallery-canvas:#F2E9D3;--gallery-mat:14px;padding-block:clamp(34px,4vw,54px);background:var(--bg-2);border-block:1px solid var(--line)}
html[data-theme="darkroom"] .customer-gallery{--gallery-canvas:#111214}
.customer-gallery__head{display:flex;justify-content:center;text-align:center;margin:0 0 18px}
.customer-gallery__head h2{margin:0;text-align:center}
.customer-gallery__credit{max-width:60ch;margin:18px auto 0;color:var(--muted);font-size:14px;line-height:1.6;text-align:center}
.customer-gallery__frame{position:relative;width:100%;max-width:700px;margin-inline:auto;padding:14px;border:1px solid rgba(255,255,255,.18);border-radius:var(--gallery-radius);background:var(--gallery-canvas);box-shadow:0 14px 38px rgba(0,0,0,.14)}
.customer-gallery__viewport{width:100%;overflow:hidden;border:1px solid rgba(0,0,0,.08);border-radius:calc(var(--gallery-radius) - 5px);background:var(--gallery-canvas);touch-action:pan-y;overscroll-behavior-x:contain;outline-offset:5px}
.customer-gallery__track{display:flex;align-items:stretch;transition:transform .42s var(--ease);will-change:transform}
.customer-gallery__slide{flex:0 0 100%;min-width:0;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:14px;padding:clamp(8px,1.5vw,18px);background:var(--gallery-canvas)}
.customer-gallery__mat{box-sizing:border-box;width:100%;height:clamp(210px,34vw,420px);display:flex;align-items:center;justify-content:center;padding:0;background:var(--gallery-canvas)}
@media(min-width:681px){
  .customer-gallery.section{padding-block:clamp(32px,4vw,58px)}
  .customer-gallery .customer-gallery__frame{max-width:min(1040px,94vw);padding:clamp(12px,1.8vw,22px)}
  .customer-gallery .customer-gallery__mat{height:clamp(300px,40vw,540px)}
  .customer-gallery .customer-gallery__slide{gap:10px;padding:clamp(8px,1.2vw,14px)}
  .customer-gallery .customer-gallery__controls{margin-top:12px}
}
/* The image itself is the white print with an equal-width mat on all four sides. */
.customer-gallery__mat img{box-sizing:content-box;display:block;width:auto;height:auto;max-width:calc(100% - var(--gallery-mat) - var(--gallery-mat));max-height:calc(100% - var(--gallery-mat) - var(--gallery-mat));padding:var(--gallery-mat);object-fit:contain;background:#fff;box-shadow:0 5px 18px rgba(0,0,0,.22);user-select:none;-webkit-user-drag:none}
.customer-gallery__slide figcaption{display:flex;flex-direction:column;gap:3px;width:100%;max-width:58ch;margin:0;padding:4px 8px 0;color:var(--ink);font-family:var(--ff-body);font-size:13px;font-weight:500;line-height:1.45;letter-spacing:0;text-align:center;overflow-wrap:anywhere;visibility:visible;opacity:1}
.customer-gallery__caption-line{display:block}
.customer-gallery__caption-line strong{font-weight:700;color:inherit}
html[data-theme="darkroom"] .customer-gallery__slide figcaption{color:rgba(255,255,255,.82)}
.customer-gallery__controls{--gallery-page-size:30px;display:grid;grid-template-columns:40px minmax(0,1fr) 40px;grid-template-areas:"prev count next" "pages pages pages";align-items:center;justify-items:center;gap:9px 10px;margin-top:16px}
.customer-gallery__arrow{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid color-mix(in srgb,var(--ink) 18%,transparent);border-radius:9px;background:transparent;color:var(--muted);cursor:pointer;touch-action:manipulation;transition:color .18s,border-color .18s,background .18s,transform .18s}
.customer-gallery__arrow[data-gallery-prev]{grid-area:prev}
.customer-gallery__arrow[data-gallery-next]{grid-area:next}
.customer-gallery__arrow:hover{border-color:color-mix(in srgb,var(--dev,var(--accent)) 55%,var(--line));background:var(--accent-soft);color:var(--dev,var(--accent));transform:translateY(-1px)}
.customer-gallery__arrow svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.customer-gallery__dots{grid-area:pages;display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:5px;width:100%;min-width:0;max-width:100%;overflow:visible}
.customer-gallery__dot{position:relative;z-index:0;display:grid;place-items:center;flex:0 0 var(--gallery-page-size);width:var(--gallery-page-size);height:var(--gallery-page-size);min-width:0;min-height:0;padding:0;border:1px solid color-mix(in srgb,var(--ink) 22%,transparent);border-radius:5px;background:var(--panel);color:var(--muted);font:600 11px/1 var(--ff-mono);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform .16s,border-color .16s,background .16s,color .16s,box-shadow .16s}
.customer-gallery__dot::before{content:none}
.customer-gallery__dot[aria-pressed="true"]{z-index:1;border-color:var(--dev,var(--accent));background:var(--dev,var(--accent));color:#fff;transform:scale(1.05);box-shadow:0 2px 7px color-mix(in srgb,var(--dev,var(--accent)) 28%,transparent)}
.customer-gallery__count{grid-area:count;justify-self:center;min-width:42px;color:var(--muted);font:500 11px/1 var(--ff-mono);text-align:center;white-space:nowrap}
.customer-gallery__ellipsis{flex:0 0 14px;color:var(--muted);font:600 13px/1 var(--ff-mono);text-align:center;user-select:none}
@media(max-width:680px){
  .customer-gallery{padding-block:38px}
  .customer-gallery__head{margin-bottom:18px;padding-inline:2px}
  .customer-gallery__head h2{max-width:19ch;font-size:clamp(25px,7.2vw,36px);line-height:1.16;text-wrap:balance}
  .customer-gallery__frame{padding:8px;border-radius:16px}
  .customer-gallery__slide{gap:11px;padding:7px}
  .customer-gallery__mat{height:clamp(210px,72vw,460px)}
  .customer-gallery__slide figcaption{font-size:12px;padding-inline:4px}
  .customer-gallery__controls{--gallery-page-size:25px;grid-template-columns:36px minmax(0,1fr) 36px;gap:7px 4px;margin-top:13px}
  .customer-gallery__dots{overflow:hidden}
  .customer-gallery__credit{max-width:42ch;margin-top:16px;font-size:13px;padding-inline:8px}
}
@media(max-width:360px){
  .customer-gallery{--gallery-mat:10px}
  .customer-gallery__frame{padding:6px}
  .customer-gallery__controls{--gallery-page-size:23px;gap:6px 3px}
  .customer-gallery__dots{gap:3px}
  .customer-gallery__arrow{width:32px;height:32px;border-radius:8px}
}
.customer-gallery__viewport:focus-visible,.customer-gallery__arrow:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.customer-gallery__controls>*{min-width:0}
.customer-gallery__dot:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.customer-gallery__dot[hidden],.customer-gallery__ellipsis[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){.customer-gallery__track{transition:none}}

.customer-gallery__mat{border:0;border-radius:0;cursor:zoom-in;-webkit-appearance:none;appearance:none;font:inherit;line-height:normal}
.customer-gallery__lightbox{--gallery-mat:14px;position:fixed;inset:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:clamp(12px,2.2vw,28px);border:0;background:#101216;color:#fff;overflow:hidden}
.customer-gallery__lightbox::backdrop{background:rgba(5,6,8,.94);backdrop-filter:blur(5px)}
.customer-gallery__lightbox-shell{height:100%;min-height:0;display:flex;flex-direction:column;gap:10px}
.customer-gallery__lightbox-top{flex:0 0 auto;display:flex;justify-content:flex-end}
.customer-gallery__lightbox-close{display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid rgba(255,255,255,.38);border-radius:50%;background:rgba(30,32,36,.9);color:#fff;font:400 34px/1 var(--ff-body);cursor:pointer;touch-action:manipulation}
.customer-gallery__lightbox-stage{position:relative;flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);align-items:center;justify-items:center;padding-inline:clamp(64px,7vw,100px)}
.customer-gallery__lightbox-mat{position:relative;width:100%;height:100%;min-width:0;min-height:0;display:grid;place-items:center;overflow:visible;background:transparent}
.customer-gallery__lightbox-mat.is-loading::after,.customer-gallery__lightbox-mat.is-error::after{content:attr(data-status);position:absolute;color:rgba(255,255,255,.78);font:500 14px/1.5 var(--ff-body);text-align:center;pointer-events:none}
.customer-gallery__lightbox-mat img{box-sizing:content-box;display:block;width:auto;height:auto;max-width:calc(100% - var(--gallery-mat) - var(--gallery-mat));max-height:calc(100dvh - 180px - var(--gallery-mat) - var(--gallery-mat));padding:var(--gallery-mat);object-fit:contain;background:#fff;box-shadow:0 8px 40px rgba(0,0,0,.5);user-select:none;-webkit-user-drag:none;cursor:default}
.customer-gallery__lightbox-mat img.is-loading{visibility:hidden}
.customer-gallery__lightbox-mat img.is-loaded{visibility:visible}
.customer-gallery__lightbox-arrow{position:absolute;z-index:2;top:50%;display:grid;place-items:center;width:52px;height:60px;padding:0;border:1px solid rgba(255,255,255,.38);border-radius:16px;background:rgba(30,32,36,.92);color:#fff;font:400 40px/1 var(--ff-body);cursor:pointer;touch-action:manipulation;transform:translateY(-50%);box-shadow:0 4px 20px rgba(0,0,0,.28)}
.customer-gallery__lightbox-arrow[data-gallery-lightbox-prev]{left:6px}
.customer-gallery__lightbox-arrow[data-gallery-lightbox-next]{right:6px}
.customer-gallery__lightbox-arrow:hover{background:rgba(55,58,64,.98);border-color:rgba(255,255,255,.7)}
.customer-gallery__lightbox-arrow[hidden]{display:none}
.customer-gallery__lightbox-caption{display:block;flex:0 0 auto;min-height:1.5em;margin:0 auto;max-width:70ch;padding:4px 12px;color:#fff;font-family:var(--ff-body);font-size:14px;font-weight:600;line-height:1.5;letter-spacing:0;text-align:center;white-space:pre-line;overflow-wrap:anywhere;visibility:visible;opacity:1;text-shadow:0 1px 4px rgba(0,0,0,.6)}
.customer-gallery__lightbox-caption[hidden]{display:none}
.customer-gallery__lightbox-close:focus-visible,.customer-gallery__lightbox-arrow:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:600px){
  .customer-gallery__lightbox{--gallery-mat:10px;padding:8px}
  .customer-gallery__lightbox-shell{gap:6px}
  .customer-gallery__lightbox-top{position:absolute;z-index:2;top:8px;right:8px}
  .customer-gallery__lightbox-close{width:46px;height:46px;background:rgba(15,16,18,.82);box-shadow:0 2px 14px rgba(0,0,0,.25)}
  .customer-gallery__lightbox-stage{padding-inline:46px}
  .customer-gallery__lightbox-arrow{width:40px;height:48px;border-radius:12px;font-size:32px}
  .customer-gallery__lightbox-mat img{max-width:calc(100% - var(--gallery-mat) - var(--gallery-mat));max-height:calc(100dvh - 132px - var(--gallery-mat) - var(--gallery-mat))}
  .customer-gallery__lightbox-arrow[data-gallery-lightbox-prev]{left:2px}
  .customer-gallery__lightbox-arrow[data-gallery-lightbox-next]{right:2px}
  .customer-gallery__lightbox-caption{font-size:13px;padding:0 8px}
}
@media(prefers-reduced-motion:reduce){.customer-gallery__lightbox-arrow{scroll-behavior:auto}}



/* ---------- about page: Ufafotohim brand story ---------- */
.about-brand-hero{position:relative;isolation:isolate;overflow:hidden;padding:clamp(42px,6vw,82px) 0 clamp(38px,5vw,70px);background:var(--bg)}
.about-brand-hero::before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(70% 95% at 88% 8%,color-mix(in srgb,var(--accent) 8%,transparent),transparent 70%);pointer-events:none}
.about-brand-hero__grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr);align-items:center;gap:clamp(30px,6vw,78px)}
.about-brand-hero__copy{min-width:0}
.about-brand-hero__copy h1{max-width:16ch;margin:0 0 18px;font-size:clamp(36px,5.1vw,62px);line-height:1.04;letter-spacing:-.035em}
.about-brand-hero__copy h1 em{color:var(--dev,var(--accent));font-style:italic}
.about-brand-hero__copy .lead{max-width:58ch;margin:0;color:var(--muted);font-size:clamp(16px,1.4vw,19px);line-height:1.65}
.about-brand-hero__note{max-width:55ch;margin:15px 0 0;color:var(--muted);font-size:15px;line-height:1.7}
.about-brand-hero__photo{position:relative;margin:0;padding:8px;border:1px solid var(--line);border-radius:calc(var(--r-l) + 3px);background:var(--panel);box-shadow:var(--shadow)}
.about-brand-hero__photo img{display:block;width:100%;aspect-ratio:1.28/1;object-fit:cover;object-position:72% center;border-radius:calc(var(--r-l) - 5px)}
.about-brand-hero__photo figcaption{margin:9px 8px 3px;color:var(--faint);font:500 10px/1.45 var(--ff-mono);letter-spacing:.11em;text-transform:uppercase}
.about-brand-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.about-brand-pill{display:inline-flex;align-items:center;min-height:32px;padding:6px 11px;border:1px solid var(--line);border-radius:999px;background:color-mix(in srgb,var(--panel) 78%,transparent);color:var(--muted);font:600 10px/1.35 var(--ff-mono);letter-spacing:.04em}
.about-brand-pill--accent{border-color:color-mix(in srgb,var(--dev,var(--accent)) 32%,var(--line));background:var(--accent-soft);color:var(--dev,var(--accent))}
.about-brand-buy{padding-top:clamp(42px,5vw,68px)}
.about-brand-buy .sect-head{align-items:flex-end}
.about-brand-buy .sect-head .lead{max-width:42ch}
.about-marketplaces{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.about-marketplace{position:relative;display:flex;min-height:154px;flex-direction:column;justify-content:space-between;gap:18px;padding:18px 19px;border:1px solid var(--line);border-radius:var(--r-m);background:var(--panel);box-shadow:0 9px 25px rgba(60,44,26,.045);transition:transform .22s var(--ease),border-color .22s,box-shadow .22s}
.about-marketplace:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--accent) 38%,var(--line));box-shadow:var(--shadow)}
.about-marketplace__index{color:var(--dev,var(--accent));font:600 10px/1 var(--ff-mono);letter-spacing:.14em}
.about-marketplace__name{font:600 clamp(18px,2vw,23px)/1.15 var(--ff-display);letter-spacing:-.015em;color:var(--ink)}
.about-marketplace__action{display:flex;justify-content:space-between;align-items:center;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);font:600 11px/1.3 var(--ff-mono);letter-spacing:.08em;text-transform:uppercase}
.about-marketplace__action span{color:var(--dev,var(--accent));font:600 17px/1 var(--ff-body);transition:transform .2s var(--ease)}
.about-marketplace:hover .about-marketplace__action span{transform:translate(2px,-2px)}
.about-brand-practice{margin-top:clamp(24px,3vw,42px)}
.about-brand-practice__grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(28px,6vw,80px);align-items:start}
.about-brand-practice__grid h2{max-width:15ch}
.about-brand-practice__body p{max-width:67ch;margin:0;color:var(--muted);font-size:16px;line-height:1.75}
.about-brand-practice__links{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}
.about-brand-ending{margin-top:clamp(38px,6vw,76px);margin-bottom:clamp(38px,5vw,64px);overflow:hidden;border:1px solid var(--line);border-radius:var(--r-l);background:var(--panel);box-shadow:var(--shadow)}
.about-brand-ending img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;object-position:center}
@media(max-width:900px){
  .about-brand-hero__grid{grid-template-columns:minmax(0,1fr) minmax(260px,.85fr);gap:30px}
  .about-marketplaces{grid-template-columns:repeat(2,minmax(0,1fr))}
  .about-brand-practice__grid{grid-template-columns:1fr;gap:18px}
}
@media(max-width:680px){
  .about-brand-hero{padding-block:34px 40px}
  .about-brand-hero__grid{grid-template-columns:1fr;gap:25px}
  .about-brand-hero__photo{order:-1}
  .about-brand-hero__copy{order:0}
  .about-brand-hero__copy h1{max-width:12ch;font-size:clamp(38px,11vw,54px)}
  .about-brand-hero__photo img{aspect-ratio:1.18/1;object-position:74% center}
  .about-brand-pills{gap:7px;margin-top:18px}
  .about-brand-pill{font-size:9px}
  .about-brand-buy{padding-top:38px}
  .about-brand-buy .sect-head{display:block}
  .about-brand-buy .sect-head .lead{margin-top:12px}
  .about-marketplaces{gap:9px}
  .about-marketplace{min-height:128px;padding:14px;border-radius:12px}
  .about-marketplace__name{font-size:18px}
  .about-brand-practice{margin-top:22px}
  .about-brand-practice__grid{gap:14px}
  .about-brand-ending{width:92vw;margin-top:34px;border-radius:15px}
  .about-brand-ending img{min-height:0;max-height:none;object-fit:contain}
}
@media(max-width:380px){
  .about-marketplaces{grid-template-columns:1fr}
  .about-marketplace{min-height:112px}
}

.mode-finder__result[hidden]{display:none!important}


/* ---------- product catalog and unified mode database ---------- */
.products-page-hero{position:relative;isolation:isolate;overflow:hidden;padding:clamp(42px,6vw,78px) 0 clamp(34px,4vw,52px);background:var(--bg)}
.products-page-hero::before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(65% 90% at 86% 0%,color-mix(in srgb,var(--accent) 9%,transparent),transparent 70%);pointer-events:none}
.products-page-hero__inner{max-width:var(--wrap);}
.products-page-hero h1{max-width:15ch;margin:0 0 16px;font-size:clamp(38px,6vw,70px);line-height:1.02;letter-spacing:-.035em}
.products-page-hero h1 em{color:var(--dev,var(--accent));font-style:italic}
.products-page-hero .lead{max-width:60ch;margin:0;color:var(--muted)}
.products-catalog{padding-top:clamp(12px,2vw,25px)}
.products-catalog__heading{display:flex;justify-content:space-between;gap:16px;margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid var(--line);color:var(--faint);font:600 10px/1.3 var(--ff-mono);letter-spacing:.15em;text-transform:uppercase}
.products-catalog__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.product-card{--product-accent:var(--accent);position:relative;display:grid;grid-template-rows:auto auto 1fr;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--r-l);background:var(--panel);box-shadow:0 12px 34px rgba(33,25,15,.055);transition:transform .25s var(--ease),border-color .25s,box-shadow .25s}
.product-card:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--product-accent) 40%,var(--line));box-shadow:var(--shadow)}
.product-card__number{position:absolute;z-index:2;top:16px;left:16px;display:grid;place-items:center;width:32px;height:26px;border:1px solid var(--line);border-radius:999px;background:color-mix(in srgb,var(--panel) 88%,transparent);color:var(--product-accent);font:600 10px/1 var(--ff-mono);backdrop-filter:blur(8px)}
.product-card__image{display:grid;place-items:center;min-height:220px;padding:24px;background:linear-gradient(145deg,color-mix(in srgb,var(--product-accent) 8%,var(--panel)),var(--panel) 64%);border-bottom:1px solid var(--line)}
.product-card__image img{display:block;width:100%;height:clamp(180px,22vw,260px);object-fit:contain;transition:transform .35s var(--ease)}
.product-card:hover .product-card__image img{transform:scale(1.035)}
.product-card__copy{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:22px 22px 20px}
.product-card__tag{color:var(--product-accent);font:600 10px/1.3 var(--ff-mono);letter-spacing:.13em;text-transform:uppercase}
.product-card__name{color:var(--ink);font:600 clamp(23px,2.4vw,31px)/1.1 var(--ff-display);letter-spacing:-.02em}
.product-card__desc{color:var(--muted);font-size:13.5px;line-height:1.65}
.product-card__link{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:auto;padding-top:14px;border-top:1px solid var(--line);color:var(--product-accent);font:700 11px/1.3 var(--ff-mono);letter-spacing:.08em;text-transform:uppercase}
.product-card__link span{font-size:17px;transition:transform .2s var(--ease)}
.product-card:hover .product-card__link span{transform:translate(2px,-2px)}
.products-catalog__note{margin:18px 0 0;color:var(--faint);font-size:13px;text-align:center}
.products-catalog__footer{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;margin-top:22px;color:var(--muted);font-size:14px}

















.mode-result-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.mode-result-tile{display:grid;gap:12px;padding:16px;border:1px solid var(--line);border-left:3px solid var(--dev,var(--accent));border-radius:var(--r-m);background:var(--panel-2)}
.mode-result-tile__top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.mode-result-tile__film{font:600 15px/1.35 var(--ff-body);color:var(--ink)}
.mode-result-tile__developer{color:var(--dev,var(--accent));font:600 9px/1.35 var(--ff-mono);letter-spacing:.1em;text-transform:uppercase;text-align:right}
.mode-result-tile__time{color:var(--dev,var(--accent));font:600 clamp(25px,3vw,34px)/1 var(--ff-display);font-variant-numeric:tabular-nums}
.mode-result-tile__details{display:flex;flex-wrap:wrap;gap:6px}
.mode-result-tile__details span{padding:5px 8px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font:600 10px/1.2 var(--ff-mono)}
.mode-result-empty{padding:22px;border:1px dashed var(--line-2);border-radius:var(--r-m);color:var(--muted);font-size:14px;text-align:center}
@media(max-width:760px){
 .products-catalog__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .product-card{border-radius:15px}
 .product-card__image{min-height:170px;padding:16px}
 .product-card__image img{height:clamp(130px,36vw,200px)}
 .product-card__copy{gap:8px;padding:16px 15px}
 .product-card__desc{font-size:12px}
 .products-catalog__heading{font-size:9px}
 
 
 
 .mode-result-list{grid-template-columns:1fr}
}
@media(max-width:380px){.products-catalog__grid{grid-template-columns:1fr}.product-card__image img{height:220px}}


/* ---------- product catalog / consolidated mode directory ---------- */
.catalog-hero{position:relative;isolation:isolate;overflow:hidden;padding:clamp(50px,7vw,92px) 0 clamp(34px,4vw,52px);background:var(--bg)}
.catalog-hero::before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(70% 90% at 88% 0%,color-mix(in srgb,var(--accent) 9%,transparent),transparent 72%)}
.catalog-hero__inner{max-width:1180px}
.catalog-hero__inner .h1{max-width:15ch;margin:0 0 18px;font-size:clamp(38px,5.6vw,68px);line-height:1.03;letter-spacing:-.04em}
.catalog-hero__inner .lead{max-width:60ch;margin:0;color:var(--muted);font-size:clamp(16px,1.5vw,19px)}
.catalog-hero__scroll{display:inline-flex;align-items:center;gap:12px;margin-top:26px;color:var(--dev,var(--accent));font:600 11px/1.2 var(--ff-mono);letter-spacing:.12em;text-transform:uppercase}
.catalog-hero__scroll span{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--line-2);border-radius:50%;font-size:16px;transition:transform .2s}
.catalog-hero__scroll:hover span{transform:translateY(3px)}
.catalog-products{padding-top:clamp(30px,4vw,48px)}
.catalog-products__head{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:clamp(24px,3vw,38px)}
.catalog-products__head .h2{max-width:17ch}
.catalog-products__head>p{max-width:38ch;margin:0;color:var(--muted);font-size:14px;line-height:1.7}
.product-catalog-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}
.product-catalog-card{grid-column:span 2;display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:var(--r-l);background:var(--panel);box-shadow:0 12px 32px rgba(40,30,20,.055);transition:transform .24s var(--ease),border-color .24s,box-shadow .24s}
.product-catalog-card:nth-child(4){grid-column:2 / span 2}
.product-catalog-card:nth-child(5){grid-column:4 / span 2}
.product-catalog-card:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--product-accent) 42%,var(--line));box-shadow:var(--shadow)}
.product-catalog-card__image{position:relative;display:grid;place-items:center;aspect-ratio:1.2/1;overflow:hidden;padding:clamp(16px,2vw,25px);background:linear-gradient(145deg,var(--panel-2),color-mix(in srgb,var(--product-accent) 5%,var(--panel)))}
.product-catalog-card__image::after{content:"";position:absolute;inset:0;border-bottom:1px solid var(--line);pointer-events:none}
.product-catalog-card__image img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .35s var(--ease)}
.product-catalog-card:hover .product-catalog-card__image img{transform:scale(1.035)}
.product-catalog-card__index{position:absolute;z-index:1;top:15px;left:17px;color:var(--product-accent);font:600 10px/1 var(--ff-mono);letter-spacing:.12em}
.product-catalog-card__body{display:flex;flex:1;flex-direction:column;padding:20px 21px 18px}
.product-catalog-card__type{margin:0 0 8px;color:var(--product-accent);font:600 10px/1.4 var(--ff-mono);letter-spacing:.11em;text-transform:uppercase}
.product-catalog-card__body h3{margin:0 0 10px;font-size:clamp(24px,2.5vw,31px);letter-spacing:-.025em}
.product-catalog-card__copy{margin:0;color:var(--muted);font-size:13.5px;line-height:1.65}
.product-catalog-card__spec{margin:auto 0 0;padding-top:15px;color:var(--faint);font:500 10px/1.5 var(--ff-mono);letter-spacing:.04em}
.product-catalog-card__action{display:flex;align-items:center;justify-content:space-between;margin-top:13px;padding-top:12px;border-top:1px solid var(--line);color:var(--product-accent);font:700 11px/1.4 var(--ff-mono);letter-spacing:.08em;text-transform:uppercase}
.product-catalog-card__action span{font:600 17px/1 var(--ff-body);transition:transform .2s}
.product-catalog-card:hover .product-catalog-card__action span{transform:translate(2px,-2px)}
.catalog-bottom{padding:0 0 clamp(48px,7vw,90px)}
.catalog-bottom__inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:clamp(22px,3vw,34px);border:1px solid var(--line);border-radius:var(--r-l);background:var(--panel)}
.catalog-bottom__inner .eyebrow{margin-bottom:8px}
.catalog-bottom__inner h2{font-size:clamp(22px,3vw,32px)}
.mode-directory-hero{padding:clamp(42px,6vw,76px) 0 26px;background:var(--bg)}
.mode-directory-hero__inner{max-width:980px}
.mode-directory-hero h1{max-width:18ch;margin:0 0 15px;font-size:clamp(36px,5.5vw,62px);letter-spacing:-.035em}
.mode-directory-hero .lead{max-width:65ch;margin:0;color:var(--muted)}
.mode-directory-hero__stats{display:flex;flex-wrap:wrap;gap:9px;margin-top:23px}
.mode-directory-hero__stats span{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--muted);font:500 10px/1.2 var(--ff-mono)}
.mode-directory-hero__stats strong{color:var(--dev,var(--accent));font-size:12px}
.mode-directory-section{padding-top:22px}
.mode-directory-panel{padding:clamp(18px,3.2vw,34px);border:1px solid var(--line);border-radius:var(--r-l);background:var(--panel);box-shadow:var(--shadow)}
.mode-directory-panel__head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.mode-directory-panel__head .eyebrow{margin-bottom:7px}
.mode-directory-panel__head h2{font-size:clamp(25px,3.4vw,38px)}
.mode-directory-reset{padding:9px 13px;border:1px solid var(--line-2);border-radius:999px;background:transparent;color:var(--muted);font:600 10px/1.2 var(--ff-mono);cursor:pointer;transition:.18s}
.mode-directory-reset:hover{border-color:var(--dev,var(--accent));color:var(--dev,var(--accent));background:var(--accent-soft)}
.mode-directory-filters{display:grid;grid-template-columns:1fr 1.4fr;gap:14px}
.mode-directory-filter{display:grid;gap:8px;min-width:0;color:var(--faint);font:600 10px/1.4 var(--ff-mono);letter-spacing:.1em;text-transform:uppercase}
.mode-directory-filter select,.mode-directory-filter input{width:100%;height:50px;padding:0 14px;border:1px solid var(--line-2);border-radius:var(--r-s);background:var(--panel-2);color:var(--ink);font:500 14px/1.4 var(--ff-body);letter-spacing:normal;text-transform:none}
.mode-directory-filter select:focus,.mode-directory-filter input:focus{outline:2px solid color-mix(in srgb,var(--dev,var(--accent)) 45%,transparent);outline-offset:1px}
.mode-directory-result{margin-top:22px;min-height:86px}
.mode-directory-result[hidden]{display:none}
.mode-directory-empty{display:flex;align-items:center;gap:15px;min-height:72px;padding:17px 19px;border:1px dashed var(--line-2);border-radius:var(--r-m);color:var(--muted);font-size:14px;line-height:1.6}
.mode-directory-empty p{margin:0}
.mode-directory-empty__icon{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:50%;background:var(--accent-soft);color:var(--dev,var(--accent));font:500 22px/1 var(--ff-body)}
.mode-directory-status{min-height:0;margin:16px 0 -8px;color:var(--faint);font:500 10px/1.3 var(--ff-mono);letter-spacing:.08em;text-transform:uppercase}
.mode-directory-status:empty{display:none}
.mode-directory-table-wrap{max-height:560px}
.mode-directory-table{min-width:760px!important}
@media(max-width:760px){.mode-directory-table{min-width:0!important}}
.mode-pair-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:11px}
.mode-pair-card{padding:17px 18px;border:1px solid var(--line);border-radius:var(--r-m);background:var(--panel-2)}
.mode-pair-card__top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.mode-pair-card__dev{color:var(--dev,var(--accent));font:600 10px/1.3 var(--ff-mono);letter-spacing:.06em;text-transform:uppercase}
.mode-pair-card__iso{padding:5px 8px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font:600 10px/1 var(--ff-mono)}
.mode-pair-card__film{margin:12px 0 2px;font:600 17px/1.3 var(--ff-body);letter-spacing:normal}
.mode-pair-card__time{color:var(--dev,var(--accent));font:700 clamp(25px,3vw,33px)/1.1 var(--ff-display);font-variant-numeric:tabular-nums}
.mode-pair-card__meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}
.mode-pair-badge{padding:6px 9px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font:500 10px/1.25 var(--ff-mono)}
.mode-directory-note{max-width:82ch;margin:16px 4px 0}
@media(max-width:900px){.product-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-catalog-card,.product-catalog-card:nth-child(4),.product-catalog-card:nth-child(5){grid-column:auto}.product-catalog-card:last-child{grid-column:1/-1;width:min(100%,calc((100% - 18px)/2));justify-self:center}}
@media(max-width:680px){
 .catalog-hero{padding:36px 0 22px}.catalog-hero__inner .h1{font-size:clamp(36px,10vw,52px)}
 .catalog-products{padding-top:28px}.catalog-products__head{display:block;margin-bottom:20px}.catalog-products__head .h2{font-size:clamp(27px,7.4vw,36px)}.catalog-products__head>p{margin-top:10px}
 .product-catalog-grid{grid-template-columns:1fr;gap:12px}.product-catalog-card,.product-catalog-card:nth-child(4),.product-catalog-card:nth-child(5),.product-catalog-card:last-child{grid-column:auto;width:100%}
 .product-catalog-card{display:grid;grid-template-columns:minmax(104px,.38fr) minmax(0,1fr);min-height:180px;border-radius:15px}
 .product-catalog-card__image{height:100%;min-height:180px;aspect-ratio:auto;padding:13px}
 .product-catalog-card__body{padding:14px 14px 13px}.product-catalog-card__body h3{font-size:22px;margin-bottom:6px}.product-catalog-card__type{font-size:9px;margin-bottom:5px}.product-catalog-card__copy{font-size:12px;line-height:1.5}.product-catalog-card__spec{padding-top:10px;font-size:9px}.product-catalog-card__action{margin-top:8px;padding-top:8px;font-size:9px}
 .catalog-bottom__inner{align-items:flex-start;flex-direction:column}.catalog-bottom__inner .btn{width:100%}
 .mode-directory-panel{padding:16px;border-radius:16px}.mode-directory-panel__head{align-items:flex-start}.mode-directory-panel__head h2{font-size:25px}.mode-directory-filters{grid-template-columns:1fr;gap:12px}.mode-directory-status{margin-top:12px}
 .mode-pair-grid{grid-template-columns:1fr}
}
@media(max-width:370px){.product-catalog-card{grid-template-columns:95px minmax(0,1fr)}.product-catalog-card__body{padding-inline:11px}}

/* Hero photo framing for the product catalogue and mode reference. */
.catalog-hero__grid,.mode-directory-hero__grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(320px,.98fr);align-items:center;gap:clamp(30px,5.5vw,72px)}

.catalog-hero__photo,.mode-directory-hero__photo{position:relative;margin:0;padding:9px;border:1px solid var(--line);border-radius:calc(var(--r-l) + 3px);background:var(--panel);box-shadow:var(--shadow)}

.catalog-hero__photo img{object-position:70% center}
.mode-directory-hero__photo img{object-position:70% center}
.catalog-hero__photo figcaption,.mode-directory-hero__photo figcaption{margin:9px 8px 3px;color:var(--faint);font:500 10px/1.45 var(--ff-mono);letter-spacing:.09em;text-transform:uppercase}
.catalog-hero__meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:21px}
.catalog-hero__meta span{padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--muted);font:500 9px/1.2 var(--ff-mono);letter-spacing:.05em;text-transform:uppercase}
.catalog-purchase{padding-top:clamp(34px,5vw,66px)}
.catalog-purchase__head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}
.catalog-purchase__head h2{font-size:clamp(26px,3.4vw,40px)}
.catalog-purchase__head>p{max-width:38ch;margin:0;color:var(--muted);font-size:14px;line-height:1.65}
.catalog-purchase__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.catalog-shop-link{display:grid;grid-template-columns:1fr auto;align-items:end;gap:15px;min-height:120px;padding:17px 18px;border:1px solid var(--line);border-radius:var(--r-m);background:var(--panel);transition:transform .2s var(--ease),border-color .2s,box-shadow .2s}

.catalog-shop-link__number{grid-column:1/-1;color:var(--dev,var(--accent));font:600 10px/1 var(--ff-mono);letter-spacing:.14em}
.catalog-shop-link strong{font:600 clamp(17px,1.9vw,22px)/1.15 var(--ff-display)}
.catalog-shop-link__go{color:var(--dev,var(--accent));font:600 10px/1 var(--ff-mono);letter-spacing:.06em;text-transform:uppercase}
.catalog-shop-link__go b{font-size:15px}
@media(max-width:900px){.catalog-hero__grid,.mode-directory-hero__grid{grid-template-columns:minmax(0,1fr) minmax(260px,.82fr);gap:28px}.catalog-purchase__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){
 .catalog-hero,.mode-directory-hero{padding:28px 0 24px}
 .catalog-hero__grid,.mode-directory-hero__grid{grid-template-columns:1fr;gap:22px}
 .catalog-hero__photo,.mode-directory-hero__photo{order:0}
 .catalog-hero__copy,.mode-directory-hero__copy{order:1}
 .catalog-hero__photo img,.mode-directory-hero__photo img{aspect-ratio:1.5/1}
 .catalog-hero__inner .h1,.mode-directory-hero h1{font-size:clamp(35px,9vw,50px)}
 .catalog-hero__meta{gap:6px}.catalog-hero__meta span{font-size:8px;padding:6px 8px}
 .catalog-purchase__head{display:block}.catalog-purchase__head>p{margin-top:10px}
 .catalog-purchase__grid{gap:8px}.catalog-shop-link{min-height:102px;padding:13px;border-radius:12px}.catalog-shop-link strong{font-size:16px}.catalog-shop-link__go{font-size:9px}
}
@media(max-width:380px){.catalog-purchase__grid{grid-template-columns:1fr}.catalog-shop-link{min-height:84px}}


/* Image-led introduction banners for the catalogue and mode directory. */
.catalog-hero,.mode-directory-hero{padding:clamp(34px,5.2vw,68px) 0 24px}
.catalog-hero__grid,.mode-directory-hero__grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(320px,.98fr);align-items:center;gap:clamp(26px,5vw,64px)}
.catalog-hero__copy,.mode-directory-hero__copy{min-width:0}
.catalog-hero__inner .h1,.mode-directory-hero h1{max-width:15ch;margin:0 0 15px;font-size:clamp(37px,5.2vw,64px);line-height:1.03;letter-spacing:-.04em}
.catalog-hero__inner .lead,.mode-directory-hero .lead{max-width:57ch;margin:0;color:var(--muted);font-size:clamp(15px,1.35vw,18px);line-height:1.65}
.catalog-hero__photo,.mode-directory-hero__photo{position:relative;margin:0;padding:8px;border:1px solid var(--line);border-radius:calc(var(--r-l) + 3px);background:var(--panel);box-shadow:var(--shadow)}
.catalog-hero__photo img,.mode-directory-hero__photo img{display:block;width:100%;aspect-ratio:1.55/1;object-fit:cover;border-radius:calc(var(--r-l) - 5px)}
.catalog-hero__photo img{object-position:76% center}
.mode-directory-hero__photo img{object-position:73% center}
.catalog-hero__photo figcaption,.mode-directory-hero__photo figcaption{margin:8px 8px 3px;color:var(--faint);font:500 9px/1.45 var(--ff-mono);letter-spacing:.09em;text-transform:uppercase}
.catalog-hero__meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px}
.catalog-hero__meta span{padding:6px 9px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--muted);font:500 9px/1.2 var(--ff-mono);letter-spacing:.04em;text-transform:uppercase}
.catalog-purchase{padding-top:clamp(30px,4.5vw,58px)}
.catalog-purchase__head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px}
.catalog-purchase__head h2{font-size:clamp(25px,3.3vw,39px)}
.catalog-purchase__head>p{max-width:40ch;margin:0;color:var(--muted);font-size:13px;line-height:1.65}
.catalog-purchase__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.catalog-shop-link{display:grid;grid-template-columns:1fr auto;align-items:end;gap:14px;min-height:120px;padding:16px 17px;border:1px solid var(--line);border-radius:var(--r-m);background:var(--panel);transition:transform .2s var(--ease),border-color .2s,box-shadow .2s}
.catalog-shop-link:hover{transform:translateY(-3px);border-color:var(--line-2);box-shadow:var(--shadow)}
.catalog-shop-link__number{grid-column:1/-1;color:var(--dev,var(--accent));font:600 9px/1 var(--ff-mono);letter-spacing:.1em}
.catalog-shop-link strong{font:600 clamp(16px,1.8vw,21px)/1.15 var(--ff-display)}
.catalog-shop-link__go{color:var(--dev,var(--accent));font:600 9px/1 var(--ff-mono);letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.catalog-shop-link__go b{font:600 15px/1 var(--ff-body)}
.about-brand-hero__copy h1{max-width:14ch}
@media(max-width:900px){
 .catalog-hero__grid,.mode-directory-hero__grid{grid-template-columns:minmax(0,1fr) minmax(260px,.82fr);gap:25px}
 .catalog-purchase__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
 .catalog-hero,.mode-directory-hero{padding:26px 0 20px}
 .catalog-hero__grid,.mode-directory-hero__grid{grid-template-columns:1fr;gap:16px}
 .catalog-hero__photo,.mode-directory-hero__photo{order:0}
 .catalog-hero__copy,.mode-directory-hero__copy{order:1}
 .catalog-hero__photo img,.mode-directory-hero__photo img{aspect-ratio:1.8/1;object-position:72% center}
 .catalog-hero__inner .h1,.mode-directory-hero h1{font-size:clamp(34px,9vw,48px);max-width:18ch}
 .catalog-hero__scroll{margin-top:17px}
 .catalog-purchase__head{display:block}
 .catalog-purchase__head>p{margin-top:9px}
 .catalog-purchase__grid{gap:8px}
 .catalog-shop-link{min-height:100px;padding:12px;border-radius:12px}
 .catalog-shop-link strong{font-size:16px}
 .catalog-shop-link__number{font-size:8px}
 .about-brand-hero{padding:24px 0 34px}
 .about-brand-hero__grid{grid-template-columns:1fr;gap:16px}
 .about-brand-hero__photo{order:-1}
 .about-brand-hero__copy{order:1}
 .about-brand-hero__photo img{aspect-ratio:1.75/1;object-position:72% center}
 .about-brand-hero__copy h1{max-width:17ch;font-size:clamp(34px,9vw,48px)}
 .about-brand-hero__note{margin-top:10px;font-size:14px}
 .about-brand-pills{margin-top:14px}
}
@media(max-width:380px){.catalog-purchase__grid{grid-template-columns:1fr}.catalog-shop-link{min-height:88px}}

/* Product/mode intro: clear, image-led, with full-width cover images on small screens. */
.catalog-hero__photo img,.mode-directory-hero__photo img{aspect-ratio:1.55/1;object-fit:cover}
.catalog-hero__photo img{object-position:73% center}
.mode-directory-hero__photo img{object-position:74% center}
.catalog-hero__inner .h1{max-width:13ch}
.catalog-products__head>p{max-width:52ch}
.mode-directory-hero__copy .lead{max-width:52ch}
.mode-directory-filters{grid-template-columns:minmax(0,1fr) 42px minmax(0,1.25fr);grid-template-areas:"developer swap film";align-items:end;gap:12px}
.mode-directory-filters.is-swapped{grid-template-areas:"film swap developer"}
.mode-directory-filter--developer{grid-area:developer}
.mode-directory-filter--film{grid-area:film}
.mode-directory-swap{grid-area:swap;display:grid;place-items:center;width:38px;height:44px;margin-bottom:3px;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--dev,var(--accent));cursor:pointer;transition:transform .2s,background .2s,border-color .2s}
.mode-directory-swap:hover,.mode-directory-swap[aria-pressed="true"]{border-color:var(--dev,var(--accent));background:var(--accent-soft)}
.mode-directory-swap[aria-pressed="true"] svg{transform:rotate(180deg)}
.mode-directory-swap svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s}
@media(max-width:900px){.mode-directory-filters{grid-template-columns:minmax(0,1fr) 38px minmax(0,1.2fr)}}
@media(max-width:680px){
 .catalog-hero__photo,.mode-directory-hero__photo{order:0}
 .catalog-hero__copy,.mode-directory-hero__copy{order:1}
 .catalog-hero__photo img,.mode-directory-hero__photo img{aspect-ratio:1.72/1;object-position:74% center}
 .mode-directory-filters{grid-template-columns:1fr;grid-template-areas:"developer" "swap" "film";gap:9px}
 .mode-directory-filters.is-swapped{grid-template-areas:"film" "swap" "developer"}
 .mode-directory-swap{width:36px;height:31px;margin:0 auto;border-radius:999px;transform:rotate(90deg)}
 .mode-directory-swap[aria-pressed="true"] svg{transform:rotate(180deg)}
 .about-brand-hero__photo{order:-1}
 .about-brand-hero__copy{order:0}
}

/* Mobile About hero: show the supplied lab photo before the copy. */


/* Final mobile and full-image overrides for the About page. */
@media(max-width:680px){.about-brand-hero__photo{order:-1!important}.about-brand-hero__copy{order:0!important}}
.about-brand-ending img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}


/* FAQ and Contact page hero photography supplied for the laboratory-helper release. */







/* FAQ and Contacts use the same editorial figure style as the article pages. */








/* Calculator tabs and paired dilution controls, aligned to existing button/card styles. */

.calculator-tab{appearance:none;min-height:40px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--muted);padding:9px 16px;font:600 13px/1.25 var(--ff-body);cursor:pointer;transition:color .18s,border-color .18s,background .18s,transform .18s}
.calculator-tab:hover{color:var(--ink);border-color:var(--line-2);transform:translateY(-1px)}
.calculator-tab.is-active{color:var(--ink);border-color:var(--dev,var(--accent));background:var(--accent-soft)}
.calculator-tab:focus-visible{outline:2px solid var(--dev,var(--accent));outline-offset:3px}




.calculator-dilution-panel{max-width:1080px;margin-inline:auto}
.dilution-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,3vw,30px);align-items:stretch}
.dilution-choice{min-width:0;padding:clamp(16px,2vw,22px);border:1px solid var(--line);border-radius:var(--r-m);background:var(--panel-2)}
.dilution-choice__title{margin:0 0 15px;color:var(--ink);font-size:clamp(16px,1.7vw,19px);font-weight:650;line-height:1.35}
.dilution-preset-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.dilution-preset,.dilution-volume-preset,.dilution-custom-toggle,.dilution-volume-custom-toggle{min-height:38px;padding:0 12px;background:var(--panel);color:var(--muted);border-color:var(--line-2);box-shadow:none;white-space:nowrap}
.dilution-preset:hover,.dilution-volume-preset:hover,.dilution-custom-toggle:hover,.dilution-volume-custom-toggle:hover{color:var(--ink);border-color:var(--dev,var(--accent));filter:none;transform:translateY(-1px)}
.dilution-preset.is-active,.dilution-volume-preset.is-active,.dilution-custom-toggle.is-active,.dilution-volume-custom-toggle.is-active{background:var(--accent-soft);border-color:var(--dev,var(--accent));color:var(--ink);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dev,var(--accent)) 14%,transparent)}
.dilution-custom-row{display:flex;align-items:center;gap:9px;margin-top:12px;min-height:40px}
.dilution-custom-prefix{color:var(--muted);font:600 15px/1 var(--ff-mono)}
.dilution-custom-input{width:120px;max-width:100%;height:38px;padding:0 11px;border:1px solid var(--line-2);border-radius:var(--r-s);background:var(--panel);color:var(--ink);font:600 14px/1.2 var(--ff-mono);font-variant-numeric:tabular-nums}
.dilution-custom-input:focus{outline:2px solid color-mix(in srgb,var(--dev,var(--accent)) 42%,transparent);outline-offset:1px}
.dilution-custom-input:disabled{opacity:.48;cursor:not-allowed}
.dilution-unit{color:var(--muted);font-size:14px}
.dilution-results{margin-top:clamp(22px,3vw,30px)}
.dilution-results__title{margin:0 0 12px;color:var(--ink);font-size:clamp(18px,2vw,22px);font-weight:650}
.dilution-results__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,2vw,20px)}
.dilution-result-card{min-width:0;min-height:145px;display:flex;flex-direction:column;justify-content:space-between;padding:clamp(17px,2.3vw,24px);border:1px solid var(--line);border-radius:var(--r-m);background:var(--panel-2)}
.dilution-result-card__label{max-width:34ch;margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.dilution-result-card__value{display:flex;align-items:baseline;gap:9px;margin:18px 0 0;font-variant-numeric:tabular-nums}
.dilution-result-card__value strong{color:var(--dev,var(--accent));font:700 clamp(31px,5vw,46px)/1 var(--ff-display)}
.dilution-result-card__value span{color:var(--faint);font:500 12px/1 var(--ff-mono)}
.calculator-dilution-panel>.mode-directory-note{max-width:82ch;margin:17px 0 0;color:var(--faint);font-size:12px;line-height:1.55}
@media(max-width:900px){.dilution-preset-row{gap:7px}.dilution-preset,.dilution-volume-preset,.dilution-custom-toggle,.dilution-volume-custom-toggle{padding-inline:10px}}
@media(max-width:680px){
 .calculator-tab{flex:1 1 auto;padding:9px 13px;font-size:12px}
 .dilution-input-grid{grid-template-columns:1fr;gap:12px}.dilution-choice{padding:16px}.dilution-choice__title{margin-bottom:13px}
 .dilution-results__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dilution-result-card{min-height:132px;padding:14px}.dilution-result-card__label{font-size:12px}.dilution-result-card__value{gap:6px}.dilution-result-card__value strong{font-size:clamp(28px,8vw,38px)}
}
@media(max-width:380px){.dilution-results__grid{grid-template-columns:1fr}}


/* Mobile mode results stay in normal document flow; no fixed-height table can overlap the footer. */

.mode-directory-panel{display:flow-root;min-width:0}
.mode-directory-result{display:flow-root;clear:both;min-width:0}
.mode-directory-table-wrap{display:block;position:relative;margin-bottom:18px}





/* Final mobile calculator fixes: responsive table flow and two-line tool labels. */




/* Calculator alignment and accessible narrow layouts. */


.calculator-dilution-panel{max-width:none}
.dilution-preset-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.dilution-preset-row>.btn{min-width:0;width:100%;padding-inline:2px;font-size:12px}
.dilution-input-grid,.dilution-results__grid{gap:20px}
.dilution-custom-row{min-width:0}
.dilution-custom-input{min-width:0;flex:0 1 120px}
.dilution-custom-prefix{padding:10px 8px;border:1px solid var(--line);border-radius:var(--r-s);background:var(--panel)}

@media(max-width:680px){
 .dilution-choice{padding:12px}
 .dilution-preset-row>.btn{font-size:11px}
 .dilution-custom-row{gap:6px}
}

/* Shared width and isolated calculator panels. */
.calculator-tabs{display:flex;flex-wrap:wrap;gap:8px;width:min(var(--wrap),92vw);margin:20px auto 0;padding-bottom:14px;border-bottom:1px solid var(--line)}
.calculator-view[hidden]{display:none}
.calculator-view{display:flow-root;min-width:0}
.calculator-view>.section{padding-top:20px}
#modes>.wrap>.calculator-mode-note{width:100%;margin:18px 0 0;padding:0;color:var(--muted);font-size:14px;line-height:1.65}
.calculator-mode-note a{color:var(--dev,var(--accent));font-weight:600;text-decoration:underline;text-underline-offset:3px}
.calculator-kicker{display:flex;align-items:baseline;gap:.42em}
@media(max-width:760px){
 .calculator-view .mode-directory-table-wrap{max-height:none;height:auto;overflow:visible;margin-bottom:18px}
 .calculator-view table.mode-directory-table{display:block;min-width:0!important;width:100%}
 .calculator-view .mode-directory-panel,.calculator-view .mode-directory-result{display:flow-root;min-width:0}
}
@media(max-width:600px){
 .calculator-kicker{flex-direction:column;align-items:flex-start;gap:3px;line-height:1.35}
 .calculator-kicker::before{display:none}
}


/* Ratio notation article: editorial layout, using the existing site article tokens. */
.ratio-article-hero{padding-bottom:clamp(22px,3vw,38px)}
.ratio-article-hero .art-head{margin-bottom:0}
.art-body--ratio-notation{--ratio-accent:var(--dev,var(--accent))}
.art-body--ratio-notation>p{color:var(--ink)}
.art-body--ratio-notation .ratio-article__intro:first-of-type{font-size:clamp(18px,2vw,21px);line-height:1.7}
.art-body--ratio-notation .ratio-article__section{display:flow-root;margin-top:clamp(36px,5vw,58px)}
.art-body--ratio-notation .ratio-article__section>h2{clear:both}
.art-body--ratio-notation .ratio-article__section:first-of-type>h2{margin-top:0}
.art-body--ratio-notation .ratio-article__lead-in{margin-bottom:.55em;font-weight:700;color:var(--ink)}
.art-body--ratio-notation .ratio-article__examples,
.art-body--ratio-notation .ratio-article__developer-examples,
.art-body--ratio-notation .ratio-article__micro-list{display:grid;gap:9px;margin:0 0 1.2em;padding:0;list-style:none}
.art-body--ratio-notation .ratio-article__examples li,
.art-body--ratio-notation .ratio-article__developer-examples li,
.art-body--ratio-notation .ratio-article__micro-list li{margin:0;padding:13px 16px;border:1px solid var(--line);border-left:3px solid var(--ratio-accent);border-radius:var(--r-s);background:var(--panel);color:var(--ink);font-size:15px;line-height:1.65}
.art-body--ratio-notation .ratio-article__takeaway{margin:1.5em 0;padding:17px 20px;border:1px solid var(--line);border-left:3px solid var(--ratio-accent);border-radius:0 var(--r-m) var(--r-m) 0;background:var(--accent-soft);font-weight:600}
.art-body--ratio-notation .ratio-article__takeaway--accent{font-size:1.05em}
.art-body--ratio-notation .ratio-article__quote{margin:1.7em 0;padding:20px 24px;border:1px solid var(--line);border-left:4px solid var(--ratio-accent);border-radius:0 var(--r-m) var(--r-m) 0;background:var(--panel);color:var(--ink);font-size:1.06em;box-shadow:var(--shadow)}
.art-body--ratio-notation .ratio-article__quote p{margin:0}
.art-body--ratio-notation .ratio-article__checklist{display:grid;gap:12px;margin:0;padding:0;list-style:none;counter-reset:ratio-check}
.art-body--ratio-notation .ratio-article__checklist>li{counter-increment:ratio-check;position:relative;margin:0;padding:18px 18px 17px 62px;border:1px solid var(--line);border-radius:var(--r-m);background:var(--panel)}
.art-body--ratio-notation .ratio-article__checklist>li::before{content:counter(ratio-check,decimal-leading-zero);position:absolute;left:17px;top:17px;color:var(--ratio-accent);font:700 13px/1.4 var(--ff-mono)}
.art-body--ratio-notation .ratio-article__checklist>li p{margin:0 0 .62em}
.art-body--ratio-notation .ratio-article__checklist>li p:first-child{font-weight:700;color:var(--ink)}
.art-body--ratio-notation .ratio-article__checklist>li p:last-child{margin:0;color:var(--muted)}
.art-body--ratio-notation .ratio-article__aside{padding:17px 19px;border-radius:var(--r-m);background:var(--panel-2);color:var(--muted)}
.art-body--ratio-notation .ratio-article__ending{padding-top:1px}
.art-body--ratio-notation .ratio-article__figure{clear:both}
@media(min-width:900px){
 .art-body--ratio-notation .ratio-article__figure:not(.art-fig--hero){width:min(42%,360px);margin:.6em 0 1.3em}
 .art-body--ratio-notation .ratio-article__figure.art-fig--right{float:right;margin-left:2em}
 .art-body--ratio-notation .ratio-article__figure.art-fig--left{float:left;margin-right:2em}
 .art-body--ratio-notation .ratio-article__figure.art-fig--wide{float:none;width:100%;max-width:900px;margin:2em auto}
}
@media(max-width:899px){
 .art-body--ratio-notation .ratio-article__figure{float:none!important;width:min(100%,520px);max-width:100%;margin:1.6em auto}
 .art-body--ratio-notation .ratio-article__checklist>li{padding:15px 15px 15px 54px}
}
