:root{
  --panel-bg:#c9d6df;
  --panel-ink:#111;
  --type-scale:1;
  --type-position:.35;
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --pad:32px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:#fff;color:#111;font-family:var(--sans);font-size:16px}
body{min-height:100vh;overflow:hidden}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}

/* Entry — same editorial language and 50/50 logic as the site */
.intro-screen{
  position:fixed;inset:0;z-index:1000;background:#fff;color:#111;
  overflow:hidden;cursor:pointer;
  display:grid;grid-template-columns:1fr 1fr;
  align-items:center;
  transition:opacity .38s ease,visibility .38s ease;
}
.intro-screen.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
.intro-left,
.intro-right{
  font-family:var(--sans);
  font-size:clamp(14px,1.05vw,20px);
  line-height:1.08;
  letter-spacing:-.02em;
}
.intro-left{
  font-weight:700;
  justify-self:start;
  margin-left:34%;
}
.intro-right{
  font-weight:400;
  justify-self:start;
  margin-left:42%;
}

/* 50/50 portfolio shell */
.site-shell{height:100svh;display:grid;grid-template-columns:1fr 1fr;overflow:hidden}
.viewer{
  position:relative;min-width:0;height:100svh;background:#efefec;overflow:hidden;
  user-select:none;-webkit-user-select:none;touch-action:pan-y;
}
.viewer.is-left{cursor:w-resize}.viewer.is-right{cursor:e-resize}
.project-image{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;
  display:block;opacity:1;transition:opacity .16s ease;
  image-rendering:auto;image-rendering:-webkit-optimize-contrast;backface-visibility:hidden;transform:translateZ(0);
}
.project-image.is-changing{opacity:.2}
.project-image.fit-contain{object-fit:contain;padding:7vh 4vw;background:#f2f1ed}

.viewer-meta{
  position:absolute;top:0;left:0;right:0;z-index:5;padding:34px 34px 0;
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:start;
  pointer-events:none;font-size:calc(13px * var(--type-scale));line-height:1.08;
}
.project-caption{max-width:68%;pointer-events:auto}
.viewer-nav{display:flex;gap:34px;align-items:baseline;white-space:nowrap;pointer-events:auto}
.viewer-meta.left-dark .project-caption{color:#111}
.viewer-meta.left-light .project-caption{color:#fff}
.viewer-meta.right-dark .viewer-nav{color:#111}
.viewer-meta.right-light .viewer-nav{color:#fff}
.about-back{
  position:absolute;top:34px;left:34px;z-index:8;font-size:calc(13px * var(--type-scale));
  text-transform:uppercase;text-decoration:none;display:none;
}
.viewer.about-mode .about-back{display:block;color:#000}
.viewer.about-mode .viewer-meta{display:none}

.info-panel{
  position:relative;min-width:0;height:100svh;background:var(--panel-bg);color:var(--panel-ink);
  transition:background-color .38s ease,color .38s ease;overflow:hidden;
}
.info-inner{height:100%;padding:34px 34px 24px;display:flex;flex-direction:column;gap:0}
.studio-line{
  max-width:530px;font-size:calc(13px * var(--type-scale));line-height:1.08;margin:0 0 60px;
}
.studio-line strong{font-weight:700}
.read-more,.show-less{text-decoration:underline;text-underline-offset:2px}

.archive-wrap{flex:1;min-height:0;overflow:auto;padding-right:14px;scrollbar-width:thin;scrollbar-color:currentColor transparent}
.archive-wrap::-webkit-scrollbar{width:1px}
.archive-wrap::-webkit-scrollbar-thumb{background:currentColor}
.archive-grid{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:24px;row-gap:0;
  padding-bottom:60px;
}
.project-item{
  text-align:left;border-bottom:1px solid transparent;padding:0 0 12px;margin:0 0 8px;
  font-family:var(--sans);font-size:calc(13px * var(--type-scale));line-height:1.08;width:100%;
  transition:opacity .15s ease,border-color .15s ease;
}
/* Hover dimming belongs to mouse input, not a persistent touch selection. */
@media (hover:hover) and (pointer:fine){
  .project-item:hover{opacity:.58;}
}
@media (max-width:820px), (hover:none), (pointer:coarse){
  .project-item:hover{opacity:1;}
  .project-item{-webkit-tap-highlight-color:transparent;}
}
.ipad-swipe .project-item:hover{opacity:1;}
.project-item.active{border-color:currentColor}
.project-title{display:block;font-family:var(--sans);font-style:normal}
.project-category{display:block;font-family:var(--serif);font-style:italic;font-size:1em}

.about-copy{display:none;flex:1;max-width:610px;align-self:flex-start;font-size:calc(13px * var(--type-scale));line-height:1.08;padding-top:18px}
.about-copy p{margin:0}
.about-body{display:block}
.about-clients{margin-top:18px}
.about-links{display:flex;flex-wrap:wrap;gap:5px 16px;margin-top:14px}
.about-links a{text-decoration:underline;text-underline-offset:2px}
.info-panel.about-mode{--panel-bg:#fff!important;--panel-ink:#111!important}
.info-panel.about-mode .archive-wrap{display:none}
.info-panel.about-mode .about-copy{display:block}
.info-panel.about-mode .studio-line{margin-bottom:58px}

.bottom-tools{
  display:flex;justify-content:space-between;align-items:flex-end;gap:18px;
  font-size:calc(13px * var(--type-scale));padding-top:14px;line-height:1;
}
.type-control{
  flex:0 0 168px;touch-action:none;cursor:ew-resize;line-height:1;display:block;position:relative;
  width:168px;height:18px;padding:0;overflow:visible;
}
.type-control span{
  position:absolute;left:0;bottom:0;display:block;
  transform:translateX(var(--type-x,0px));
  transition:transform .02s linear;will-change:transform;
  font-size:13px;line-height:1;
}
.language{margin-left:auto;display:flex;align-items:flex-end;gap:5px;white-space:nowrap;line-height:1}
.language a{text-decoration:underline;text-underline-offset:2px}
.language a.active{text-decoration:none}


.mobile-about{
  display:none;position:absolute;left:16px;bottom:14px;z-index:12;
  font-size:11px;line-height:1;text-decoration:none;
}

/* Touch hint zones are invisible */
.viewer-zone{position:absolute;top:0;bottom:0;width:50%;z-index:3;background:transparent}
.viewer-zone.prev{left:0}.viewer-zone.next{right:0}
.viewer-meta,.about-back{z-index:10}

@media (max-width: 820px){
  body{overflow:auto}
  .site-shell{height:auto;min-height:100svh;display:block;overflow:visible}

  /* Mobile reference: image first, archive directly below */
  .viewer{height:46svh;min-height:330px;max-height:520px}
  .viewer-meta{
    padding:12px 14px 0;font-size:11px;line-height:1.04;gap:8px;
    grid-template-columns:minmax(0,1fr) auto;
  }
  .project-caption{max-width:62%}
  .viewer-nav{gap:14px}
  .about-back{top:auto;left:14px;bottom:14px;font-size:11px}
  .mobile-about{display:block}
  .viewer.about-mode .mobile-about{display:none}
  .viewer.about-mode .viewer-meta{display:none}
  .project-image.fit-contain{padding:3.5vh 4vw}

  .info-panel{height:auto;min-height:54svh;overflow:visible}
  .info-inner{min-height:54svh;padding:12px 14px 0;display:flex;flex-direction:column}

  /* On the archive view the reference goes straight into the project list */
  .info-panel:not(.about-mode) .studio-line{display:none}
  .studio-line{
    font-size:calc(12px * var(--type-scale));line-height:1.06;margin:0 0 26px;max-width:100%;
  }

  .archive-wrap{overflow:visible;padding-right:0}
  .archive-grid{grid-template-columns:1fr;column-gap:0;padding-bottom:76px}
  .project-item{
    font-size:calc(12px * var(--type-scale));line-height:1.04;
    padding:0 0 7px;margin:0 0 5px;
  }

  .about-copy{
    font-size:calc(12px * var(--type-scale));line-height:1.06;
    max-width:100%;padding:12px 0 76px;
  }
  .info-panel.about-mode .studio-line{margin-bottom:26px}
  .about-clients{margin-top:16px}

  /* A stays accessible while the archive scrolls, like the reference */
  .bottom-tools{
    position:fixed;
    left:12px;
    right:12px;
    bottom:calc(10px + env(safe-area-inset-bottom));
    z-index:40;
    margin:0;
    padding:7px 0;
    background:var(--panel-bg);
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:12px;
    line-height:1;
    box-sizing:border-box;
  }
  .type-control{
    flex:0 0 104px;
    width:104px;
    height:12px;
    line-height:1;
  }
  .type-control span{
    top:0;
    bottom:auto;
    font-size:12px;
    line-height:1;
  }
  .language{
    font-size:11px;
    line-height:1;
    align-items:center;
  }

  .intro-screen{
    display:block;
    padding:0;
  }
  .intro-left,
  .intro-right{
    position:absolute;
    left:50%;
    margin:0;
    transform:translateX(-50%);
    width:max-content;
    max-width:84vw;
    text-align:center;
    line-height:1.08;
    letter-spacing:-.02em;
  }
  .intro-left{
    top:36%;
    font-size:14px;
    font-weight:700;
  }
  .intro-right{
    top:72%;
    font-size:14px;
    font-weight:400;
  }
}

@media (max-width: 520px){
  .viewer{height:44svh;min-height:300px}
  .viewer-meta{padding-left:12px;padding-right:12px}
  .mobile-about,.about-back{left:12px;bottom:12px}
  .info-inner{padding-left:12px;padding-right:12px}
  .project-item{font-size:calc(11.5px * var(--type-scale))}
  .studio-line,.about-copy{font-size:calc(11.5px * var(--type-scale))}
  .intro-left,.intro-right{font-size:13px}
  .intro-left{top:35%}
  .intro-right{top:72%}
}

@media (prefers-reduced-motion: reduce){
  .intro-screen,.info-panel,.project-image{transition:none}
}

@media (max-width: 820px){
  html, body, .site-shell, .info-panel, .archive-wrap{
    overflow-anchor:none;
  }
  .type-control{
    -webkit-user-select:none;
    user-select:none;
    touch-action:none;
  }
}

/* =========================================================
   V62 — 4:5 visual field + V59 interface
   ========================================================= */

@media (min-width:821px){
  .site-shell{
    grid-template-columns:min(80svh, 54vw) minmax(0,1fr);
  }

  .viewer{
    width:100%;
    height:100svh;
    aspect-ratio:4 / 5;
  }

  /* Keep the project's artwork as the hero; 1080×1350 work now fits naturally. */
  .project-image{
    width:100%;
    height:100%;
  }

  /* Intro uses exactly the same split as the site that follows. */
  .intro-screen{
    grid-template-columns:min(80svh, 54vw) minmax(0,1fr);
  }
  .intro-left{
    margin-left:34%;
  }
  .intro-right{
    margin-left:34%;
  }
}

/* Project numbering — the one element retained from the exploratory version. */
.project-item{
  display:grid;
  grid-template-columns:2.2em minmax(0,1fr);
  column-gap:.55em;
}
.project-index{
  grid-row:1 / span 2;
  grid-column:1;
  font-family:var(--sans);
  font-style:normal;
  font-variant-numeric:tabular-nums;
  opacity:.58;
}
.project-title,
.project-category{
  grid-column:2;
}
.project-item.active .project-index{
  opacity:1;
}

@media (max-width:820px){
  .project-item{
    grid-template-columns:2em minmax(0,1fr);
    column-gap:.45em;
  }
}

/* V63 — selected project marker */
.project-item.active{
  border-color:transparent !important;
}
.project-index{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  width:max-content;
  min-width:1.9em;
  padding:1px 3px 1px 0;
  transition:background-color .14s ease,color .14s ease,padding .14s ease;
}
.project-item.active .project-index{
  background:var(--panel-ink);
  color:var(--panel-bg);
  padding:1px 4px;
}
.project-item.active .project-title{
  font-weight:700;
}

@media (max-width:820px){
  .about-links{margin-top:12px}
}


/* =========================================================
   V65 — continuità con V59/V62: solo correzioni concordate
   ========================================================= */

/* Desktop intro: each label is centered inside its own half/area. */
@media (min-width:821px){
  .intro-left,
  .intro-right{
    justify-self:center;
    margin-left:0 !important;
    text-align:center;
  }
}

/* Active project: no rule, no badge. Only the project name becomes bold. */
.project-item.active{border-color:transparent !important;}
.project-item.active .project-index{
  background:transparent !important;
  color:inherit !important;
  padding:1px 3px 1px 0 !important;
  opacity:.58 !important;
  font-weight:400 !important;
}
.project-item.active .project-title{font-weight:700;}
.project-item.active .project-category{font-weight:400;}

/* More air before Portfolio / Mail / Telefono / Instagram. */
.about-links{margin-top:26px;}

@media (max-width:820px){
  /* The mobile visual is a real 4:5 field, full width. */
  .viewer{
    width:100%;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    aspect-ratio:4 / 5;
  }
  .project-image{width:100%;height:100%;}

  /* Keep the A / language bar fixed like the reference, but flush with the panel: no detached strip. */
  .info-panel{overflow:visible;}
  .info-inner{padding-bottom:0;}
  .archive-grid{padding-bottom:68px;}
  .about-copy{padding-bottom:68px;}
  .bottom-tools{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    width:100%;
    margin:0;
    padding:9px 12px calc(10px + env(safe-area-inset-bottom));
    background:var(--panel-bg);
    box-shadow:none;
    border:0;
  }
  .info-panel.about-mode .bottom-tools{background:#fff;}
}

@media (max-width:520px){
  .viewer{height:auto !important;min-height:0 !important;max-height:none !important;aspect-ratio:4 / 5;}
  .bottom-tools{margin:0;padding-left:12px;padding-right:12px;}
}


/* =========================================================
   V66 — project copy, tighter archive, project palettes
   ========================================================= */
.viewer{background:#efefec;transition:background-color .28s ease;}
.viewer.square-mode{background:var(--project-bg,#efefec);}

/* Square artwork can either sit in a white 4:5 mount or directly on the project colour. */
.project-image.square-slide,
.project-image.plain-square-slide{
  inset:auto;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  height:auto;
  object-fit:contain;
  object-position:center;
}
.project-image.square-slide{
  width:min(78%,68vh);
  aspect-ratio:4 / 5;
  padding:2.6%;
  background:#fff;
}
.project-image.plain-square-slide{
  width:min(82%,72vh);
  max-height:84%;
  padding:0;
  background:transparent;
}

/* Descriptions keep deliberate line breaks instead of running into one long line. */
.project-caption{
  max-width:min(72%,520px);
  white-space:pre-line;
  line-height:1.12;
}

/* Bring the second project column closer to the first. */
.archive-grid{
  grid-template-columns:minmax(245px,330px) minmax(245px,330px);
  column-gap:22px;
  justify-content:start;
}

/* 01. Project name on one line, category directly below the title. */
.project-item{
  grid-template-columns:max-content minmax(0,1fr) !important;
  column-gap:.42em !important;
  align-items:start;
}
.project-index{
  grid-column:1 !important;
  grid-row:1 !important;
  width:auto !important;
  min-width:0 !important;
  padding:0 !important;
  opacity:.55 !important;
  line-height:1.08;
}
.project-title{
  grid-column:2 !important;
  grid-row:1 !important;
  display:block;
  line-height:1.08;
}
.project-category{
  grid-column:2 !important;
  grid-row:2 !important;
  display:block;
  margin-top:1px;
  line-height:1.02;
}
.project-item.active .project-index{
  padding:0 !important;
  opacity:.55 !important;
  font-weight:400 !important;
}
.project-item.active .project-title{font-weight:700 !important;}

@media (max-width:820px){
  .archive-grid{grid-template-columns:1fr;column-gap:0;}
  .project-image.square-slide{width:88%;padding:3%;}
  .project-image.plain-square-slide{width:90%;max-height:88%;}
  .project-caption{max-width:68%;line-height:1.08;}
}

@media (min-width:821px) and (max-width:1180px){
  .archive-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    column-gap:16px;
  }
}


/* =========================================================
   V72 — mobile sticky visual + project info / about drawers
   ========================================================= */
.mobile-project-info,
.mobile-project-panel{display:none;}

@media (max-width:820px){
  /* The visual stays pinned at the top; only the content below it scrolls. */
  .viewer{
    position:sticky !important;
    top:0;
    z-index:30;
    width:100%;
    aspect-ratio:4 / 5;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
  }

  /* Normal mobile state: description is hidden behind “Info project”. */
  .viewer:not(.about-mode) .project-caption{display:none !important;}
  .mobile-project-info{
    display:block;
    position:absolute;
    left:12px;
    top:12px;
    z-index:14;
    padding:0;
    font-size:11px;
    line-height:1;
    color:inherit;
    text-decoration:none;
  }
  .viewer-meta{
    grid-template-columns:1fr auto;
    pointer-events:none;
  }
  .viewer-nav{pointer-events:auto;}

  .mobile-project-panel{
    position:absolute;
    inset:0;
    z-index:50;
    padding:12px;
    background:var(--project-bg,#efefec);
    color:var(--project-ink,#111);
    font-size:11px;
    line-height:1.12;
  }
  .viewer.project-info-open .mobile-project-panel{display:block;}
  .viewer.project-info-open .project-image,
  .viewer.project-info-open .viewer-meta,
  .viewer.project-info-open .mobile-about,
  .viewer.project-info-open .mobile-project-info,
  .viewer.project-info-open .viewer-zone{visibility:hidden;}
  .viewer.project-info-open .mobile-project-panel{visibility:visible;}
  .mobile-project-close{
    position:absolute;
    top:12px;
    left:12px;
    padding:0;
    font-size:11px;
    line-height:1;
    color:inherit;
  }
  .mobile-project-copy{
    max-width:78%;
    margin-top:29px;
    white-space:pre-line;
    line-height:1.13;
  }

  /* About behaves like the reference: portrait remains the sticky visual,
     information replaces the archive below. */
  .viewer.about-mode{position:sticky !important;top:0;}
  .viewer.about-mode .about-back{
    display:block;
    top:auto;
    bottom:12px;
    left:12px;
  }
  .info-panel.about-mode{min-height:calc(100svh - 125vw);}
  .info-panel.about-mode .studio-line{display:block;}

  /* Slightly larger minimum typography, while retaining the draggable A. */
  .project-item{font-size:calc(12.2px * var(--type-scale));line-height:1.06;}
  .project-category{margin-top:3px !important;line-height:1.03;}
  .studio-line,.about-copy{font-size:calc(12.2px * var(--type-scale));}

  /* Keep archive beneath the sticky image and give the last items room above the toolbar. */
  .info-panel{position:relative;z-index:10;}
  .archive-grid{padding-top:2px;padding-bottom:82px;}
  .info-inner{padding-top:12px;}

  /* Top labels should always follow the sampled image contrast. */
  .viewer-meta.left-dark .project-caption,
  .viewer-meta.left-dark + *{color:#111;}
  .mobile-project-info{color:#111;}
  .viewer-meta.left-light ~ .mobile-project-info{color:#fff;}
}

@media (max-width:820px){
  .viewer{--overlay-left:#111;--overlay-right:#111;}
  .mobile-project-info{color:var(--overlay-left,#111);}
}
@media (max-width:820px){
  .viewer.about-mode .mobile-project-info,
  .viewer.about-mode .mobile-project-panel{display:none !important;}
}


/* =========================================================
   V74 — mobile nav + About interaction fixes
   ========================================================= */
@media (max-width:820px){
  /* project caption is hidden on mobile, so force counter/next to the right column */
  .viewer-meta{
    grid-template-columns:minmax(0,1fr) auto !important;
  }
  .viewer-nav{
    grid-column:2 !important;
    justify-self:end !important;
    position:relative;
    z-index:16;
    gap:14px;
  }

  .mobile-project-info{
    left:12px !important;
    right:auto !important;
    z-index:17;
  }

  /* Both mobile controls must remain independently clickable above navigation zones. */
  .mobile-about{
    z-index:17;
    pointer-events:auto;
  }
  .mobile-project-info,
  .mobile-project-close,
  .about-back{
    pointer-events:auto;
  }

  /* About uses exactly the same content block as desktop, below the sticky portrait. */
  .info-panel.about-mode .about-copy{
    display:block !important;
  }
  .info-panel.about-mode .archive-wrap{
    display:none !important;
  }
}

/* V75 — mobile image navigation: never flash/dim the visual while loading the next slide */
@media (max-width: 820px){
  .project-image,
  .project-image.is-changing{
    opacity:1 !important;
    transition:none !important;
  }
  .viewer-zone,
  .next-label,
  .project-counter,
  .mobile-project-info,
  .mobile-about{
    -webkit-tap-highlight-color:transparent;
  }
}


/* =========================================================
   V78 — precise monochrome desktop navigation cues
   ========================================================= */
.viewer-hints{
  position:absolute;
  left:34px;
  right:34px;
  bottom:24px;
  z-index:10;
  display:flex;
  justify-content:space-between;
  align-items:center;
  pointer-events:none;
  font-size:0;
  line-height:1;
  color:var(--overlay-arrows,#111);
}
.viewer-hint{
  position:relative;
  display:block;
  width:12px;
  height:12px;
  color:inherit;
  filter:drop-shadow(0 0 .35px var(--overlay-arrow-shadow,transparent));
}
.viewer-hint::before{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:7px;
  height:7px;
  border-top:.75px solid currentColor;
  border-right:.75px solid currentColor;
  transform-origin:center;
}
.prev-hint::before{transform:translate(-37%,-50%) rotate(-135deg);}
.next-hint::before{transform:translate(-63%,-50%) rotate(45deg);}
.viewer.about-mode .viewer-hints{display:none;}

@media (max-width:820px){
  .viewer-hints{display:none !important;}
}

/* =========================================================
   V78 — responsive, low-latency type-size control
   ========================================================= */
.type-control::before{
  content:"";
  position:absolute;
  left:18px;
  right:14px;
  bottom:5px;
  height:.75px;
  background:currentColor;
  opacity:.28;
  pointer-events:none;
}
.type-control .type-knob{
  position:absolute;
  left:0;
  right:auto;
  bottom:0;
  display:block;
  transform:translate3d(var(--type-x,0px),0,0);
  transition:none;
  will-change:transform;
  font-size:13px;
  line-height:1;
  z-index:2;
}
.type-control .type-plus{
  position:absolute;
  left:auto;
  right:0;
  bottom:-1px;
  display:block;
  transform:none;
  transition:none;
  font-size:12px;
  line-height:1;
  opacity:.58;
  pointer-events:none;
  z-index:2;
}
.type-control.is-dragging{cursor:grabbing;}

@media (max-width:820px){
  .type-control::before{
    left:16px;
    right:13px;
    bottom:5px;
  }
  .type-control .type-knob{
    top:0;
    bottom:auto;
    font-size:12px;
    line-height:1;
  }
  .type-control .type-plus{
    top:0;
    bottom:auto;
    font-size:11px;
    line-height:1;
  }
}



/* =========================================================
   V79 — arrow alignment, mobile overlay colors, refined type slider
   ========================================================= */

/* Desktop navigation cues: precise alignment with the text/grid, not space-between. */
.viewer-hints{
  left:0 !important;
  right:0 !important;
  bottom:20px !important;
  display:block !important;
  pointer-events:none;
}
.viewer-hint{
  position:absolute !important;
  display:block;
  width:14px;
  height:14px;
  color:inherit;
  filter:drop-shadow(0 0 .3px var(--overlay-arrow-shadow,transparent));
}
.viewer-hint::before{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:8px;
  height:8px;
  border-top:.65px solid currentColor;
  border-right:.65px solid currentColor;
}
.prev-hint{left:27px !important;}
.next-hint{right:27px !important;}
.prev-hint::before{transform:translate(-35%,-50%) rotate(-135deg);}
.next-hint::before{transform:translate(-65%,-50%) rotate(45deg);}

/* Replace the previous A—+ control with a clearer small-A / large-A slider. */
.type-control::before{display:none !important;}
.type-control{
  flex:0 0 164px;
  width:164px;
  height:18px;
  padding:0;
  display:grid;
  grid-template-columns:auto 1fr auto;
  column-gap:10px;
  align-items:end;
  cursor:ew-resize;
  overflow:visible;
}
.type-control span{position:static !important; transform:none !important;}
.type-control .type-min,
.type-control .type-max{display:block; line-height:1; white-space:nowrap;}
.type-control .type-min{font-size:13px;}
.type-control .type-max{font-size:16px;}
.type-control .type-track{
  position:relative !important;
  display:block;
  align-self:center;
  height:12px;
  width:100%;
}
.type-control .type-track::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:.75px;
  transform:translateY(-50%);
  background:currentColor;
  opacity:.28;
}
.type-control .type-handle{
  position:absolute !important;
  top:50%;
  left:calc(var(--type-position, 0) * 100%);
  width:5px;
  height:5px;
  border-radius:999px;
  background:currentColor;
  transform:translate(-50%,-50%) !important;
}
@media (max-width:820px){
  .type-control{flex:0 0 118px; width:118px; height:16px; column-gap:8px;}
  .type-control .type-min{font-size:12px;}
  .type-control .type-max{font-size:14px;}
  .type-control .type-track{height:10px;}
  .type-control .type-handle{width:4px;height:4px;}
}


/* =========================================================
   V80 — desktop-only arrows, mobile about toggle parity, refined type alignment
   ========================================================= */

/* Desktop only: bottom arrows stay off on mobile and align to the page system. */
.viewer-hints{
  left:0 !important;
  right:0 !important;
  bottom:24px !important;
}
.viewer-hint{
  width:12px;
  height:12px;
}
.viewer-hint::before{
  width:7px;
  height:7px;
  border-top:.6px solid currentColor;
  border-right:.6px solid currentColor;
}
.prev-hint{left:39px !important;}
.next-hint{right:39px !important;}

/* Small A sits optically centered with the track and the large A. */
.type-control{
  align-items:center;
}
.type-control .type-min,
.type-control .type-max{
  position:relative;
  top:0;
}
.type-control .type-min{
  top:-1px;
}
.type-control .type-track{
  align-self:center;
}

@media (max-width:820px){
  .viewer-hints{display:none !important;}

  /* On mobile the single About button becomes Close in exactly the same place. */
  .about-back{display:none !important;}
  .mobile-about{
    display:block !important;
    left:16px;
    bottom:14px;
    font-size:11px;
    line-height:1;
    text-transform:none;
  }
  .viewer.about-mode .mobile-about{display:block !important;}

  .type-control{
    flex:0 0 118px;
    width:118px;
    height:16px;
    align-items:center;
  }
  .type-control .type-min{top:-1px;}
}


/* =========================================================
   V81 — precise desktop arrow alignment + dot-only type control
   ========================================================= */

/* Desktop arrows: align to the same baseline rhythm as the A control and language switch. */
.viewer-hints{
  bottom:13px !important;
}
.prev-hint{left:38px !important;}
.next-hint{right:38px !important;}
.viewer-hint{
  width:11px;
  height:11px;
}
.viewer-hint::before{
  width:7px;
  height:7px;
  border-top:.55px solid currentColor;
  border-right:.55px solid currentColor;
}

/* Type size control becomes a cleaner A • A control with no visible track line. */
.type-control{
  flex:0 0 190px;
  width:190px;
  height:20px;
  grid-template-columns:auto 1fr auto;
  column-gap:10px;
  align-items:center;
}
.type-control .type-min,
.type-control .type-max{
  line-height:1;
  display:block;
  position:relative;
}
.type-control .type-min{
  font-size:13px;
  top:-2px;
}
.type-control .type-max{
  font-size:16px;
  top:0;
}
.type-control .type-track{
  position:relative !important;
  display:block;
  height:16px;
  width:100%;
}
.type-control .type-track::before{
  display:none !important;
  content:none !important;
}
.type-control .type-handle{
  position:absolute !important;
  top:50%;
  left:calc(var(--type-position, 0) * 100%);
  width:var(--type-handle-size, 6px);
  height:var(--type-handle-size, 6px);
  border-radius:999px;
  background:currentColor;
  transform:translate(-50%,-50%) !important;
}

@media (max-width:820px){
  .viewer-hints{display:none !important;}
  .type-control{
    flex:0 0 150px;
    width:150px;
    height:18px;
    column-gap:9px;
  }
  .type-control .type-min{
    font-size:12px;
    top:-1px;
  }
  .type-control .type-max{
    font-size:15px;
  }
  .type-control .type-track{
    height:14px;
  }
}


/* =========================================================
   V83 — arrow alignment, FASK palette, spacing in type control
   ========================================================= */

@media (min-width:821px){
  .viewer-hints{
    left:0 !important;
    right:0 !important;
    bottom:22px !important;
    height:0;
  }
  .viewer-hint{
    width:10px;
    height:10px;
    color:var(--overlay-arrows,#141511);
    filter:none;
  }
  .viewer-hint::before{
    width:7px;
    height:7px;
    border-top:.55px solid currentColor;
    border-right:.55px solid currentColor;
  }
  .prev-hint{left:34px !important;}
  .next-hint{right:34px !important;}
}

.type-control{
  flex:0 0 196px;
  width:196px;
  height:20px;
  grid-template-columns:auto 1fr auto;
  column-gap:12px;
  align-items:center;
}
.type-control .type-min{
  font-size:13px;
  top:-1px;
}
.type-control .type-max{
  font-size:16px;
  top:-1px;
}
.type-control .type-track{
  height:16px;
  width:100%;
}
.type-control .type-handle{
  left:var(--type-handle-x, 8px);
  top:50%;
  width:var(--type-handle-size, 6px);
  height:var(--type-handle-size, 6px);
  transform:translate(-50%,-50%) !important;
}

@media (max-width:820px){
  .type-control{
    flex:0 0 148px;
    width:148px;
    height:18px;
    column-gap:10px;
  }
  .type-control .type-min{
    font-size:12px;
    top:-1px;
  }
  .type-control .type-max{
    font-size:15px;
    top:-1px;
  }
  .type-control .type-track{height:14px;}
  .type-control .type-handle{left:var(--type-handle-x, 7px);}
}


/* =========================================================
   V84 — exact bottom alignment from reference 51
   ========================================================= */
@media (min-width:821px){
  /* Same 34px horizontal grid as project copy / next and same 24px bottom grid as controls. */
  .viewer-hints{
    left:0 !important;
    right:0 !important;
    bottom:24px !important;
    height:20px !important;
    display:block !important;
  }
  .viewer-hint{
    position:absolute !important;
    top:50% !important;
    width:10px !important;
    height:10px !important;
    margin:0 !important;
    transform:translateY(-50%) !important;
  }
  .prev-hint{left:34px !important;}
  .next-hint{right:34px !important;}
  .prev-hint::before{transform:translate(-35%,-50%) rotate(-135deg) !important;}
  .next-hint::before{transform:translate(-65%,-50%) rotate(45deg) !important;}

  /* Bottom tools share the exact same 20px visual row. */
  .bottom-tools{
    min-height:20px;
    align-items:center !important;
    padding-top:14px;
  }
  .type-control{height:20px !important;align-items:center !important;}
  .language{align-items:center !important;line-height:1 !important;}
}


/* =========================================================
   V87 — mobile bottom fade like reference site
   ========================================================= */
@media (max-width:820px){
  .info-panel::after{
    content:"";
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    height:120px;
    background:linear-gradient(to bottom,
      rgba(255,255,255,0) 0%,
      color-mix(in srgb, var(--panel-bg) 32%, transparent) 28%,
      color-mix(in srgb, var(--panel-bg) 72%, transparent) 62%,
      var(--panel-bg) 100%);
    pointer-events:none;
    z-index:18;
  }
  .bottom-tools{
    z-index:22;
  }
}


/* =========================================================
   V88 — bottom fade on desktop + mobile
   ========================================================= */
@media (min-width:821px){
  .info-panel::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:185px;
    background:linear-gradient(
      to bottom,
      rgba(255,255,255,0) 0%,
      color-mix(in srgb, var(--panel-bg) 16%, transparent) 20%,
      color-mix(in srgb, var(--panel-bg) 48%, transparent) 46%,
      color-mix(in srgb, var(--panel-bg) 82%, transparent) 70%,
      var(--panel-bg) 100%
    );
    pointer-events:none;
    z-index:8;
  }
  .bottom-tools{
    position:relative;
    z-index:12;
  }
}


/* =========================================================
   V90 — mobile collapsing sticky image
   ========================================================= */
@media (max-width:820px){
  .viewer{
    --mobile-viewer-height:125vw;
    height:var(--mobile-viewer-height) !important;
    min-height:0 !important;
    max-height:none !important;
    aspect-ratio:auto !important;
    will-change:height;
  }
  .project-image{transition:none !important;}
  .viewer.mobile-collapsed .project-image{
    object-fit:cover !important;
    object-position:center !important;
  }
  .viewer.mobile-collapsed .project-image.square-slide,
  .viewer.mobile-collapsed .project-image.plain-square-slide,
  .viewer.mobile-collapsed .project-image.fit-contain{
    inset:0 !important;
    left:0 !important;
    top:0 !important;
    width:100% !important;
    height:100% !important;
    max-height:none !important;
    aspect-ratio:auto !important;
    padding:0 !important;
    transform:none !important;
    object-fit:cover !important;
    background:var(--project-bg,#efefec) !important;
  }
  .mobile-project-panel{
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }
}


/* =========================================================
   V92 — stability pass from desktop/mobile recordings
   ========================================================= */

/* Never dim the old image while the next asset is being prepared. */
.project-image.is-changing{opacity:1 !important;}

@media (max-width:820px){
  /* Stable two-state collapse: avoids layout feedback/jitter from changing height on every scroll frame. */
  .viewer{
    --mobile-expanded-height:125vw;
    --mobile-compact-height:clamp(210px,56vw,235px);
    height:var(--mobile-expanded-height) !important;
    transition:height 280ms cubic-bezier(.22,.72,.22,1);
    will-change:height;
  }
  .viewer.mobile-collapsed:not(.about-mode){
    height:var(--mobile-compact-height) !important;
  }

  /* Ordinary portrait/4:5 photography can crop naturally in the compact state. */
  .viewer.mobile-collapsed:not(.about-mode) > .project-image:not(.square-slide):not(.plain-square-slide):not(.fit-contain){
    object-fit:cover !important;
    object-position:center !important;
  }

  /* Square / mounted artwork must NEVER be stretched or cropped during collapse. */
  .viewer.mobile-collapsed:not(.about-mode) > .project-image.square-slide{
    inset:auto !important;
    left:50% !important;
    top:50% !important;
    width:min(78vw, calc(var(--mobile-compact-height) * .78)) !important;
    height:auto !important;
    max-height:92% !important;
    aspect-ratio:4 / 5 !important;
    padding:2.4% !important;
    transform:translate(-50%,-50%) !important;
    object-fit:contain !important;
    background:#fff !important;
  }
  .viewer.mobile-collapsed:not(.about-mode) > .project-image.plain-square-slide{
    inset:auto !important;
    left:50% !important;
    top:50% !important;
    width:min(82vw, calc(var(--mobile-compact-height) * .84)) !important;
    height:auto !important;
    max-height:88% !important;
    aspect-ratio:1 / 1 !important;
    padding:0 !important;
    transform:translate(-50%,-50%) !important;
    object-fit:contain !important;
    background:transparent !important;
  }
  .viewer.mobile-collapsed:not(.about-mode) > .project-image.fit-contain{
    inset:0 !important;
    left:0 !important;
    top:0 !important;
    width:100% !important;
    height:100% !important;
    padding:10px 12px !important;
    transform:none !important;
    object-fit:contain !important;
    background:var(--project-bg,#efefec) !important;
  }

  /* About gets one stable portrait height; collapse logic is disabled while open. */
  .viewer.about-mode{
    height:58svh !important;
    min-height:380px !important;
    max-height:520px !important;
    transition:none !important;
  }
  .viewer.about-mode > .project-image{
    inset:0 !important;
    left:0 !important;
    top:0 !important;
    width:100% !important;
    height:100% !important;
    transform:none !important;
    padding:0 !important;
    object-fit:cover !important;
  }

  /* Swipe layer exists only on mobile and never changes the desktop DOM/layout. */
  .mobile-swipe-layer{
    display:none;
    position:absolute;
    inset:0;
    z-index:6;
    overflow:hidden;
    pointer-events:none;
    background:transparent;
  }
  .viewer.is-swiping .mobile-swipe-layer{display:block;}
  .mobile-swipe-track{
    position:absolute;
    inset:0;
    transform:translate3d(0,0,0);
    will-change:transform;
  }
  .mobile-swipe-card{
    position:absolute;
    inset:0;
    overflow:hidden;
    background:var(--swipe-bg,#efefec);
  }
  .mobile-swipe-card.prev{transform:translate3d(-100%,0,0);}
  .mobile-swipe-card.current{transform:translate3d(0,0,0);}
  .mobile-swipe-card.next{transform:translate3d(100%,0,0);}
  .mobile-swipe-card .project-image{
    opacity:1 !important;
    transition:none !important;
    pointer-events:none;
  }
  .viewer.is-swiping > .project-image{visibility:hidden;}

  /* Match square artwork rules inside the swipe cards, including compact state. */
  .viewer.mobile-collapsed .mobile-swipe-card .project-image.square-slide{
    inset:auto !important;left:50% !important;top:50% !important;
    width:min(78vw, calc(var(--mobile-compact-height) * .78)) !important;
    height:auto !important;max-height:92% !important;aspect-ratio:4/5 !important;
    padding:2.4% !important;transform:translate(-50%,-50%) !important;
    object-fit:contain !important;background:#fff !important;
  }
  .viewer.mobile-collapsed .mobile-swipe-card .project-image.plain-square-slide{
    inset:auto !important;left:50% !important;top:50% !important;
    width:min(82vw, calc(var(--mobile-compact-height) * .84)) !important;
    height:auto !important;max-height:88% !important;aspect-ratio:1/1 !important;
    padding:0 !important;transform:translate(-50%,-50%) !important;
    object-fit:contain !important;background:transparent !important;
  }
  .viewer.mobile-collapsed .mobile-swipe-card .project-image.fit-contain{
    inset:0 !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;
    padding:10px 12px !important;transform:none !important;object-fit:contain !important;
    background:var(--project-bg,#efefec) !important;
  }
}

@media (min-width:821px){
  .mobile-swipe-layer{display:none !important;}
}

/* V95 — mobile-only: continuous swipe strip and About viewport sizing. */
@media (max-width:820px){
  .info-panel{transition:none;}
  .mobile-swipe-layer{display:block;visibility:hidden;}
  .viewer.is-swiping .mobile-swipe-layer{visibility:visible;}
  .mobile-swipe-track{
    display:flex;
    left:-100%;right:auto;
    width:300%;height:100%;
  }
  .mobile-swipe-card{
    position:relative;
    inset:auto;
    flex:0 0 calc(100% / 3);
    width:calc(100% / 3);height:100%;
    transform:none !important;
  }
  .mobile-swipe-card .project-image{backface-visibility:visible;}
  .mobile-swipe-card .project-image:not(.square-slide):not(.plain-square-slide){transform:none;}
  /* Keep the live artwork behind the strip during preparation and handoff. */
  .viewer.is-swiping > .project-image{visibility:visible;}

  body.mobile-about-open{
    --mobile-about-height:clamp(380px,58svh,520px);
    min-height:100svh;
  }
  body.mobile-about-compact{--mobile-about-height:clamp(210px,56vw,235px);}
  .viewer.about-mode.about-compact{
    height:var(--mobile-about-height) !important;
    min-height:0 !important;max-height:none !important;
  }
  .viewer.about-mode.about-compact > .project-image{
    inset:auto !important;top:50% !important;left:50% !important;
    width:auto !important;height:100% !important;max-width:100% !important;
    transform:translate(-50%,-50%) !important;object-fit:contain !important;
  }
  body.mobile-about-open .info-panel.about-mode,
  body.mobile-about-open .info-panel.about-mode .info-inner{
    height:auto;
    min-height:calc(100svh - var(--mobile-about-height));
  }
}

/* V96 — all layout changes below apply exclusively to mobile. */
@media (max-width:820px){
  body.mobile-about-open{
    position:fixed;inset:0;
    width:100%;height:100dvh;min-height:0;
    overflow:hidden;overscroll-behavior:none;
  }
  body.mobile-about-open .site-shell{
    height:100%;min-height:0;
    display:flex;flex-direction:column;overflow:hidden;
  }
  body.mobile-about-open .viewer.about-mode{
    position:relative !important;
    flex:0 0 auto;
    height:var(--about-live-height,var(--mobile-about-height)) !important;
    min-height:0 !important;max-height:none !important;
  }
  body.mobile-about-open .viewer.about-mode > .project-image{
    inset:0 !important;left:0 !important;top:0 !important;
    width:100% !important;height:100% !important;max-width:none !important;
    transform:none !important;object-fit:cover !important;
    object-position:50% 53% !important;
  }
  body.mobile-about-open .info-panel.about-mode{
    flex:1 1 0;
    height:auto;min-height:0;
    overflow-x:hidden;overflow-y:auto;
    overscroll-behavior:none;
    -webkit-overflow-scrolling:touch;
  }
  body.mobile-about-open .info-panel.about-mode .info-inner{
    display:block;height:auto;min-height:100%;
    padding-bottom:var(--about-collapse-space,0px);
  }
  body.mobile-about-open .info-panel.about-mode .about-copy{flex:none;}
}

@media (max-width:820px){
  body.mobile-about-open .viewer.about-mode.about-expanding{
    transition:height 240ms ease-out !important;
  }
}
@media (max-width:820px) and (prefers-reduced-motion:reduce){
  body.mobile-about-open .viewer.about-mode.about-expanding{transition:none !important;}
}

/* V97 — mobile only: preserve About geometry and use native horizontal paging. */
@media (max-width:820px){
  .viewer:not(.about-mode){touch-action:auto;}
  .native-carousel{
    display:block;visibility:hidden;
    overflow-x:auto;overflow-y:hidden;
    scroll-snap-type:x mandatory;overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;
    touch-action:pan-x pan-y;pointer-events:none;
  }
  .native-carousel::-webkit-scrollbar{display:none;}
  .viewer.native-carousel-ready:not(.about-mode) .native-carousel{visibility:visible;pointer-events:auto;}
  .viewer.native-carousel-ready .native-carousel.native-busy{pointer-events:none;}
  .native-carousel .mobile-swipe-track{
    left:0;right:auto;width:300%;height:100%;
    transform:none !important;transition:none !important;will-change:auto;
  }
  .native-carousel .mobile-swipe-card{scroll-snap-align:start;scroll-snap-stop:always;}
  body.mobile-about-open{--mobile-about-height:125vw;}
  body.mobile-about-open.mobile-about-compact{--mobile-about-height:clamp(210px,56vw,235px);}
  body.mobile-about-open .viewer.about-mode:not(.about-expanding){transition:none !important;}
}

/* V98: mobile persistent native paging and continuous vertical geometry. */
@media (max-width:820px){
  .native-carousel .mobile-swipe-track{width:100%;}
  .native-carousel .mobile-swipe-card{flex:0 0 100%;width:100%;}
  .viewer.project-info-open .native-carousel{visibility:hidden !important;pointer-events:none !important;}
  .viewer:not(.about-mode),.viewer.mobile-collapsed:not(.about-mode){
    height:var(--project-live-height,125vw) !important;transition:none !important;
  }
  .info-panel:not(.about-mode){padding-bottom:var(--project-collapse-space,0px);}
  .viewer:not(.about-mode) > .project-image.square-slide,
  .viewer.mobile-collapsed:not(.about-mode) > .project-image.square-slide,
  .viewer:not(.about-mode) .mobile-swipe-card .project-image.square-slide,
  .viewer.mobile-collapsed:not(.about-mode) .mobile-swipe-card .project-image.square-slide{
    inset:auto !important;left:50% !important;top:50% !important;
    width:var(--project-square-width,88vw) !important;height:auto !important;
    max-height:92% !important;aspect-ratio:4/5 !important;
    padding:2.4% !important;transform:translate(-50%,-50%) !important;
    object-fit:contain !important;background:#fff !important;
  }
  .viewer:not(.about-mode) > .project-image.plain-square-slide,
  .viewer.mobile-collapsed:not(.about-mode) > .project-image.plain-square-slide,
  .viewer:not(.about-mode) .mobile-swipe-card .project-image.plain-square-slide,
  .viewer.mobile-collapsed:not(.about-mode) .mobile-swipe-card .project-image.plain-square-slide{
    inset:auto !important;left:50% !important;top:50% !important;
    width:var(--project-plain-width,90vw) !important;height:auto !important;
    max-height:88% !important;aspect-ratio:1/1 !important;
    padding:0 !important;transform:translate(-50%,-50%) !important;
    object-fit:contain !important;background:transparent !important;
  }
  body.mobile-about-open .site-shell{
    display:block;overflow-x:hidden;overflow-y:auto;
    overscroll-behavior-y:none;overflow-anchor:none;
    -webkit-overflow-scrolling:touch;
  }
  body.mobile-about-open .viewer.about-mode{position:sticky !important;top:0;z-index:30;}
  body.mobile-about-open .info-panel.about-mode{
    height:auto;min-height:0;overflow:visible;overscroll-behavior:auto;
    padding-bottom:var(--about-collapse-space,0px);
  }
  body.mobile-about-open .info-panel.about-mode .info-inner{
    height:auto;min-height:var(--about-panel-height,0px);padding-bottom:0;
  }
}

@media (max-width:820px){
  .viewer:not(.about-mode) > .project-image.fit-contain,
  .viewer.mobile-collapsed:not(.about-mode) > .project-image.fit-contain,
  .viewer:not(.about-mode) .mobile-swipe-card .project-image.fit-contain,
  .viewer.mobile-collapsed:not(.about-mode) .mobile-swipe-card .project-image.fit-contain{
    inset:0 !important;left:0 !important;top:0 !important;
    width:100% !important;height:100% !important;transform:none !important;
    object-fit:contain !important;
    padding:var(--project-fit-y,3.5vh) var(--project-fit-x,4vw) !important;
  }
}

/* V99 — mobile-only, per-slide contrast and unmounted square covers. */
@media (max-width:820px){
  .info-panel.about-mode .studio-line,
  .info-panel.about-mode .about-copy{line-height:1.12;}
  .viewer:not(.about-mode) > .project-image.mobile-plain-square,
  .viewer.mobile-collapsed:not(.about-mode) > .project-image.mobile-plain-square,
  .viewer:not(.about-mode) .mobile-swipe-card .project-image.mobile-plain-square,
  .viewer.mobile-collapsed:not(.about-mode) .mobile-swipe-card .project-image.mobile-plain-square{
    inset:auto !important;left:50% !important;top:50% !important;
    width:var(--project-plain-width,90vw) !important;height:auto !important;
    max-height:88% !important;aspect-ratio:1/1 !important;
    padding:0 !important;transform:translate(-50%,-50%) !important;
    object-fit:contain !important;background:transparent !important;
  }
  .viewer:not(.about-mode)[data-mobile-info="dark"] .mobile-project-info{color:#111 !important;}
  .viewer:not(.about-mode)[data-mobile-info="light"] .mobile-project-info{color:#fff !important;}
  .viewer:not(.about-mode)[data-mobile-counter="dark"] .project-counter{color:#111 !important;}
  .viewer:not(.about-mode)[data-mobile-counter="light"] .project-counter{color:#fff !important;}
  .viewer:not(.about-mode)[data-mobile-next="dark"] .next-label{color:#111 !important;}
  .viewer:not(.about-mode)[data-mobile-next="light"] .next-label{color:#fff !important;}
  .viewer:not(.about-mode)[data-mobile-about="dark"] .mobile-about{color:#111 !important;}
  .viewer:not(.about-mode)[data-mobile-about="light"] .mobile-about{color:#fff !important;}
  .viewer:not(.about-mode)[data-mobile-arrows="dark"]{--overlay-arrows:#111 !important;--overlay-arrow-shadow:rgba(255,255,255,.34) !important;}
  .viewer:not(.about-mode)[data-mobile-arrows="light"]{--overlay-arrows:#fff !important;--overlay-arrow-shadow:rgba(0,0,0,.42) !important;}
}

/* V101 — About owns the page and browser background, including the safe area. */
html.about-open,html.about-open body{background:#fff !important;}
.info-panel.about-mode{background:#fff !important;transition:none;}
@media (max-width:820px){
  html,body{background:var(--browser-bg,#fff);}
  body.mobile-about-open .site-shell,
  body.mobile-about-open .info-panel,
  body.mobile-about-open .bottom-tools{background:#fff !important;}
}
@media (min-width:821px){
  /* The source portrait has three pale edge columns. Clip only that edge;
     the shared 4:5 viewer and the split with the text panel never move. */
  .viewer.about-mode > .project-image[src="/assets/portrait.jpg"]{
    inset:0;width:100%;height:100%;max-width:none;max-height:none;
    padding:0;aspect-ratio:auto;object-fit:cover;object-position:center;
    transform:scale(1.008);transform-origin:center;
  }
}

/* V102 — mobile typography and decoded About portrait; desktop remains unchanged. */
.about-portrait{display:none;}
@media (max-width:820px){
  .project-item{margin-bottom:calc(8px + var(--archive-extra-gap,0px));}
  .viewer-meta,.mobile-project-info,.mobile-project-close,.mobile-about,.about-back,
  .mobile-project-panel,.mobile-project-copy{font-size:calc(11px * var(--type-scale));}
  .mobile-project-copy{margin-top:calc(18px + 1.2em);}
  .viewer-nav{gap:clamp(8px,3vw,14px);}
  .language{font-size:calc(13px * var(--type-scale));}
  .type-control .type-min{font-size:calc(12px * var(--type-scale));}
  .type-control .type-max{font-size:calc(15px * var(--type-scale));}
  /* Allow even the last selected row to reach the bottom edge of the photo. */
  .archive-grid::after{
    content:'';display:block;grid-column:1/-1;
    height:max(0px,calc(100svh - clamp(210px,56vw,235px) - 90px));
    pointer-events:none;
  }
  .viewer > .about-portrait{
    display:block;visibility:hidden;position:absolute;inset:0;
    width:100%;height:100%;object-fit:cover;object-position:50% 53%;
    z-index:7;pointer-events:none;
  }
  .viewer.about-mode > .about-portrait{visibility:visible;}
  .viewer.about-mode > .project-image{visibility:hidden;}
}

/* V104 — Black denotes weight 900; existing theme colors and opacity are retained. */
.project-item.active,
.project-item.active .project-index,
.project-item.active .project-title,
.project-item.active .project-category{font-weight:900 !important;}
@media (max-width:820px){
  .info-panel:not(.about-mode) .info-inner{padding-top:16px;}
}
/* iPad only. Mouse/trackpad desktop retains its existing viewer and navigation. */
@media (min-width:821px){
  .ipad-swipe .viewer:not(.about-mode){touch-action:auto;}
  .ipad-swipe .native-carousel{
    display:block !important;visibility:hidden;position:absolute;inset:0;z-index:6;
    overflow-x:auto;overflow-y:hidden;pointer-events:none;
    scroll-snap-type:x mandatory;overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;touch-action:pan-x pan-y;
  }
  .ipad-swipe .native-carousel::-webkit-scrollbar{display:none;}
  .ipad-swipe .viewer.native-carousel-ready:not(.about-mode) .native-carousel{visibility:visible;pointer-events:auto;}
  .ipad-swipe .native-carousel .mobile-swipe-track{
    position:absolute;inset:0;display:flex;width:100%;height:100%;
    transform:none;transition:none;
  }
  .ipad-swipe .native-carousel .mobile-swipe-card{
    position:relative;flex:0 0 100%;width:100%;height:100%;overflow:hidden;
    background:var(--swipe-bg,#efefec);scroll-snap-align:start;scroll-snap-stop:always;
  }
  .ipad-swipe .native-carousel .project-image{opacity:1 !important;transition:none;pointer-events:none;}
  .ipad-swipe .viewer-hints{z-index:8;pointer-events:none;}
}

/* A common 11px mobile baseline; the A control still enlarges all these texts. */
@media (max-width:820px){
  .project-item,.studio-line,.about-copy,
  .viewer-meta,.mobile-project-info,.mobile-project-close,.mobile-about,.about-back,
  .mobile-project-panel,.mobile-project-copy,.language,
  .type-control .type-min,.type-control .type-max{
    font-size:calc(11px * var(--type-scale));
  }
}

/* V105 — one alignment grid; About has no previous/next controls. */
.viewer.about-mode .viewer-hints,
.viewer.about-mode .viewer-zone,
.viewer.about-mode .viewer-nav{display:none !important;}
@media (min-width:821px){
  .info-panel.about-mode .studio-line{margin-bottom:24px;}
  .info-panel.about-mode .about-copy{padding-top:0;}
}
@media (max-width:820px){
  .viewer-meta{padding:12px 12px 0;line-height:1.1;}
  .mobile-project-info,.mobile-project-close{left:12px;top:12px;line-height:1.1;}
  .mobile-about,.about-back{left:12px;bottom:12px;line-height:1.1;}
  .viewer-nav{align-items:baseline;line-height:1.1;}
  .project-counter,.next-label{line-height:inherit;}
  .info-panel:not(.about-mode) .info-inner{padding-top:calc(16px + var(--selection-leading-space,0px));}
}


/* V113: compensate every lost viewer pixel at the bottom of the archive,
   keeping document height stable during the continuous mobile collapse. */
@media (max-width:820px){
  .viewer:not(.about-mode),
  .viewer.mobile-collapsed:not(.about-mode){
    height:var(--project-live-height,125vw) !important;
    transition:none !important;
    will-change:auto !important;
  }
  .info-panel:not(.about-mode){
    padding-bottom:var(--project-collapse-space,0px) !important;
  }
}

@media (max-width:820px){
  .viewer:not(.about-mode){
    position:sticky !important;
    top:0 !important;
    z-index:20 !important;
    align-self:stretch;
  }
  .archive-grid::after{
    height:var(--archive-tail-space,0px) !important;
    min-height:0 !important;
  }
}


/* V114: fixed off-screen carousel geometry, with only nearby cards resizing. */
@media (max-width:820px){
  .native-carousel .mobile-swipe-track{
    height:125vw !important;
    align-items:flex-start;
  }
  .native-carousel .mobile-swipe-card{
    height:125vw !important;
    contain:layout paint style;
    content-visibility:auto;
  }
  .native-carousel .mobile-swipe-card.native-nearby{
    height:var(--project-live-height,125vw) !important;
    content-visibility:visible;
  }
}

/* V117: stable layout; collapse changes transforms only. The translated
   viewport's lower edge clips the photo and remains the archive boundary. */
@media (max-width:820px){
  .viewer.mobile-transform-frame:not(.about-mode),
  .viewer.mobile-transform-frame.mobile-collapsed:not(.about-mode){
    height:125vw !important;
    will-change:transform !important;
  }
  .viewer.mobile-transform-frame .native-carousel .mobile-swipe-card.native-nearby{
    height:125vw !important;
  }
  .info-panel.mobile-transform-archive:not(.about-mode){padding-bottom:0 !important;}
  .info-panel.mobile-transform-archive:not(.about-mode)::before{
    content:"";position:absolute;left:0;right:0;top:-125vw;height:125vw;
    background:inherit;pointer-events:none;
  }
  .mobile-transform-archive .archive-wrap{position:relative;will-change:transform;}
  .mobile-transform-frame .viewer-meta,
  .mobile-transform-frame .mobile-project-info{will-change:transform;}
}

/* V118: native scroll timelines own translation/scaling when supported.
   Startup cover fallback fills the viewport before decoded geometry is ready. */
@media (max-width:820px){
  .viewer.mobile-transform-frame:not(.about-mode){will-change:translate !important;}
  .mobile-transform-archive .archive-wrap,
  .mobile-transform-frame .viewer-meta,
  .mobile-transform-frame .mobile-project-info{will-change:translate;}
  .viewer:not(.about-mode) .project-image:not(.square-slide):not(.plain-square-slide):not(.mobile-plain-square):not(.fit-contain):not([style*="object-fit"]){
    inset:0 !important;width:100% !important;height:100% !important;
    max-width:none !important;max-height:none !important;padding:0 !important;
    object-fit:cover !important;transform:none !important;
  }
}

/* V119: square slides use a full-width 1:1 mobile viewport. This height changes
   only when the slide's format changes, never on a scroll animation frame. */
@media (max-width:820px){
  .viewer.mobile-square-frame:not(.about-mode),
  .viewer.mobile-square-frame.mobile-transform-frame:not(.about-mode),
  .viewer.mobile-square-frame.mobile-collapsed:not(.about-mode){height:100vw !important;}
  .viewer.mobile-square-frame:not(.about-mode) .native-carousel .mobile-swipe-track,
  .viewer.mobile-square-frame:not(.about-mode) .native-carousel .mobile-swipe-card,
  .viewer.mobile-square-frame:not(.about-mode) .native-carousel .mobile-swipe-card.native-nearby{height:100vw !important;}
  .viewer:not(.about-mode) .project-image.square-slide,
  .viewer:not(.about-mode) .project-image.plain-square-slide,
  .viewer:not(.about-mode) .project-image.mobile-plain-square{
    padding:0 !important;background:transparent !important;
  }
  .viewer:not(.about-mode) .project-image.square-slide:not([style*="object-fit"]),
  .viewer:not(.about-mode) .project-image.plain-square-slide:not([style*="object-fit"]),
  .viewer:not(.about-mode) .project-image.mobile-plain-square:not([style*="object-fit"]){
    inset:0 !important;width:100% !important;height:100% !important;
    max-width:none !important;max-height:none !important;aspect-ratio:auto !important;
    transform:none !important;object-fit:cover !important;
  }
}
@media (max-width:820px){
  /* Keep scroll limits stable when a slide changes format; the archive itself
     rises with the square viewport, while compensation stays below the list. */
  .viewer.mobile-square-frame:not(.about-mode) + .info-panel:not(.about-mode){padding-bottom:25vw !important;}
}

/* V120: full-bleed cover photos use their parent's responsive box from first
   paint. This also protects the pre-JS and cached-image startup paths. */
@media (max-width:820px){
  .viewer:not(.about-mode) .project-image:not(.fit-contain){
    width:100% !important;height:100% !important;
    max-width:none !important;max-height:none !important;
    padding:0 !important;object-fit:cover !important;
  }
}

/* V121: every snap target occupies exactly one horizontal viewport. */
@media (max-width:820px){
  .native-carousel{padding:0;scroll-padding:0;}
  .native-carousel .mobile-swipe-track{gap:0;margin:0;padding:0;border:0;}
  .native-carousel .mobile-swipe-card{
    box-sizing:border-box;flex:0 0 100% !important;min-width:100%;
    margin:0;padding:0;border:0;scroll-margin:0;scroll-snap-align:start;
  }
}

/* V122: immediately available previews and a soft About transition. */
@media (max-width:820px){
  .native-carousel .mobile-swipe-card{background-image:var(--native-preview);background-size:cover;background-position:center;}
  .native-carousel .mobile-swipe-card.image-ready{background-image:none;}
  ::view-transition-old(root),::view-transition-new(root){animation-duration:260ms;animation-timing-function:ease-in-out;}
}

/* V123: every native square card fills its frame even before JS geometry runs.
   Override legacy inset/contain rules with their full selector specificity. */
@media(max-width:820px){
  .viewer:not(.about-mode) .native-carousel .mobile-swipe-card .project-image:is(.square-slide,.plain-square-slide,.mobile-plain-square){
    inset:auto !important;left:0 !important;top:0 !important;
    width:100% !important;height:100% !important;max-width:none !important;max-height:none !important;
    padding:0 !important;aspect-ratio:auto !important;object-fit:cover !important;
    transform:none !important;background:transparent !important;
  }
  .viewer:not(.about-mode) .native-carousel .mobile-swipe-card{content-visibility:visible;}
}


/* CESCWO targeted refinements: preserve the original project scroll geometry. */
@media (max-width:820px){
  /* About inherits the exact live height of the project frame it replaces. */
  .viewer.about-mode.about-compact{
    height:var(--about-live-height,var(--mobile-about-height)) !important;
  }

  /* Reveal About copy by its actual visual lines, with a soft stagger. */
  .about-copy-source{display:block;}
  .about-line{display:block;transform-origin:0 50%;}
  @keyframes cescwoAboutLineIn{
    0%{opacity:0;transform:translate3d(0,.12em,0);}
    100%{opacity:1;transform:translate3d(0,0,0);}
  }
  @keyframes cescwoAboutLineOut{
    0%{opacity:1;transform:translate3d(0,0,0);}
    100%{opacity:0;transform:translate3d(0,-.1em,0);}
  }
  .info-panel.about-text-entering .about-line{
    animation:cescwoAboutLineIn 560ms cubic-bezier(.16,1,.3,1) both;
    animation-delay:var(--about-line-delay,0ms);
  }
  .info-panel.about-text-entering .about-links a{
    animation:cescwoAboutLineIn 520ms cubic-bezier(.16,1,.3,1) both;
    animation-delay:var(--about-link-delay,160ms);
  }
  .info-panel.about-text-exiting .about-line{
    animation:cescwoAboutLineOut 175ms cubic-bezier(.22,.7,.25,1) both;
    animation-delay:var(--about-line-out-delay,0ms);
  }
  .info-panel.about-text-exiting .about-links a{
    animation:cescwoAboutLineOut 165ms cubic-bezier(.22,.7,.25,1) both;
    animation-delay:var(--about-link-out-delay,0ms);
  }
}
@media (prefers-reduced-motion:reduce){
  .info-panel.about-text-entering .about-line,
  .info-panel.about-text-entering .about-links a,
  .info-panel.about-text-exiting .about-line,
  .info-panel.about-text-exiting .about-links a{animation:none !important;}
}


/* V129: keep the native swipe strip painted, the active archive row moving live,
   and About content inside a bounded scroll viewport. */
@media (max-width:820px){
  .native-carousel .mobile-swipe-card{
    background-color:var(--swipe-bg,var(--project-bg,#efefec)) !important;
    background-repeat:no-repeat;
  }
  .native-carousel .mobile-swipe-card.image-ready{
    background-image:none;
    background-color:var(--swipe-bg,var(--project-bg,#efefec)) !important;
  }

  body.mobile-about-open{
    position:fixed !important;
    inset:0 !important;
    width:100% !important;
    height:100dvh !important;
    min-height:0 !important;
    overflow:hidden !important;
    overscroll-behavior:none !important;
  }
  body.mobile-about-open .site-shell{
    display:flex !important;
    flex-direction:column !important;
    grid-template-columns:none !important;
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
    overscroll-behavior:none !important;
  }
  body.mobile-about-open .viewer.about-mode{
    position:relative !important;
    top:auto !important;
    z-index:30 !important;
    flex:0 0 auto !important;
    width:100% !important;
    height:var(--about-live-height,var(--mobile-about-height,125vw)) !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:hidden !important;
    transition:none !important;
  }
  body.mobile-about-open .viewer.about-mode > .about-portrait{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    max-height:none !important;
    object-fit:cover !important;
    object-position:50% 53% !important;
  }
  body.mobile-about-open .info-panel.about-mode{
    position:relative !important;
    flex:1 1 0 !important;
    width:100% !important;
    height:0 !important;
    min-height:0 !important;
    max-height:none !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    overscroll-behavior-y:contain !important;
    -webkit-overflow-scrolling:touch !important;
    touch-action:pan-y !important;
    scrollbar-width:none;
    padding:0 !important;
  }
  body.mobile-about-open .info-panel.about-mode::-webkit-scrollbar{display:none;}
  body.mobile-about-open .info-panel.about-mode .info-inner{
    display:block !important;
    height:auto !important;
    min-height:100% !important;
    padding:12px 14px calc(88px + env(safe-area-inset-bottom)) !important;
    box-sizing:border-box !important;
  }
  body.mobile-about-open .info-panel.about-mode .studio-line{
    display:block !important;
    margin:0 0 26px !important;
  }
  body.mobile-about-open .info-panel.about-mode .about-copy{
    display:block !important;
    max-width:100% !important;
    padding:0 0 20px !important;
    flex:none !important;
  }
  body.mobile-about-open .info-panel.about-mode .about-clients{
    margin-top:16px !important;
    padding-bottom:8px;
  }
  body.mobile-about-open .info-panel.about-mode .bottom-tools{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    z-index:40 !important;
    background:#fff !important;
  }
}



/* V134: keep the sticky page in its original scroll container. About uses
   one local image fade; the browser never snapshots the archive's scroll. */
@media(max-width:820px){
  .info-panel.about-text-pending .about-line,
  .info-panel.about-text-pending .about-links a{opacity:0;}
  .viewer > .about-transition-image{
    display:block;position:absolute;inset:0;width:100%;height:100%;
    max-width:none;max-height:none;object-fit:cover;object-position:center;
    padding:0;border:0;transform:none;z-index:9;pointer-events:none;
  }
}

/* V135: persistent image layers, softer About on mobile and desktop. */
.viewer > .about-portrait{
  display:block;visibility:hidden;position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:50% 53%;z-index:7;pointer-events:none;
}
.viewer.about-mode > .about-portrait{visibility:visible;}
.viewer.about-mode > .project-image{visibility:hidden;}
.viewer > .about-transition-image{
  display:block;position:absolute;max-width:none;max-height:none;
  border:0;z-index:9;pointer-events:none;will-change:opacity;
}
.info-panel.about-text-pending .about-line,
.info-panel.about-text-pending .about-links a{opacity:0;}
@keyframes cescwoAboutDesktopIn{from{opacity:0;transform:translateY(5px);}to{opacity:1;transform:translateY(0);}}
@keyframes cescwoAboutDesktopOut{from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(-4px);}}
@media(min-width:821px){
  .about-copy-source,.about-line{display:block;}
  .info-panel.about-text-entering .about-line{animation:cescwoAboutDesktopIn 560ms cubic-bezier(.16,1,.3,1) both;animation-delay:var(--about-line-delay,0ms);}
  .info-panel.about-text-entering .about-links a{animation:cescwoAboutDesktopIn 520ms ease-out both;animation-delay:var(--about-link-delay,160ms);}
  .info-panel.about-text-exiting .about-line{animation:cescwoAboutDesktopOut 175ms ease-out both;animation-delay:var(--about-line-out-delay,0ms);}
  .info-panel.about-text-exiting .about-links a{animation:cescwoAboutDesktopOut 165ms ease-out both;animation-delay:var(--about-link-out-delay,0ms);}
}
@media(max-width:820px){
  .viewer:not(.about-mode) .native-carousel .mobile-swipe-card,
  .viewer:not(.about-mode) .native-carousel .mobile-swipe-card.image-ready{
    background-image:var(--native-preview) !important;
    background-size:cover;background-position:center;background-repeat:no-repeat;
  }
  .viewer:not(.about-mode) .native-carousel .mobile-swipe-card .project-image:not(.fit-contain){background:transparent !important;}
}
@media(prefers-reduced-motion:reduce){
  .info-panel.about-text-entering .about-line,.info-panel.about-text-entering .about-links a,
  .info-panel.about-text-exiting .about-line,.info-panel.about-text-exiting .about-links a{animation:none !important;}
}

.info-panel.about-text-pending .studio-line{opacity:0;}
.info-panel.about-text-entering .studio-line{animation:cescwoAboutDesktopIn 480ms cubic-bezier(.16,1,.3,1) both;}
.info-panel.about-text-exiting .studio-line{animation:cescwoAboutDesktopOut 175ms ease-out both;}
@media(prefers-reduced-motion:reduce){
  .info-panel.about-text-entering .studio-line,.info-panel.about-text-exiting .studio-line{animation:none !important;}
}

/* V136: freeze only the mobile photograph in viewport coordinates while the
   project/About page layout changes underneath. */
.mobile-about-veil{position:fixed;overflow:hidden;z-index:1000;pointer-events:none;contain:layout paint;will-change:opacity;}
.mobile-about-veil > .mobile-about-veil-image{display:block;position:absolute;inset:auto;max-width:none;max-height:none;box-sizing:border-box;border:0;transform:none;}
@media(min-width:821px){
  .site-shell{transition:grid-template-columns 320ms cubic-bezier(.22,.61,.36,1);}
  .site-shell.desktop-square-project{grid-template-columns:min(100svh,calc(100vw - 320px)) minmax(0,1fr);}
  .site-shell.desktop-square-project .viewer:not(.about-mode){height:min(100svh,calc(100vw - 320px));aspect-ratio:1;}
  .site-shell.desktop-square-project .viewer:not(.about-mode) > .project-image:is(.square-slide,.plain-square-slide){
    inset:0;left:0;top:0;width:100%;height:100%;max-width:none;max-height:none;
    padding:0;aspect-ratio:1;object-fit:cover;transform:none;background:transparent;
  }
}
@media(min-width:821px) and (prefers-reduced-motion:reduce){.site-shell{transition:none;}}

@media(min-width:821px){
  .site-shell .viewer{transition:height 320ms cubic-bezier(.22,.61,.36,1),background-color 280ms ease;}
}
@media(min-width:821px) and (prefers-reduced-motion:reduce){.site-shell .viewer{transition:none;}}

/* V137: paragraph animation on phones avoids synchronous per-word layout.
   Desktop line animations start with the photo and finish sooner. */
@media(max-width:820px){
  .info-panel.about-text-entering .about-line,.info-panel.about-text-exiting .about-line{animation:none !important;opacity:1;}
  .info-panel.about-text-entering .about-copy-source{animation:cescwoAboutDesktopIn 300ms cubic-bezier(.16,1,.3,1) both;}
  .info-panel.about-text-entering .about-clients .about-copy-source{animation-delay:35ms;}
  .info-panel.about-text-exiting .about-copy-source{animation:cescwoAboutDesktopOut 125ms ease-out both;}
  .info-panel.about-text-entering .about-links a{animation-duration:280ms;animation-delay:45ms;}
}
@media(min-width:821px){
  .info-panel.about-text-entering .about-line{animation-duration:340ms;}
  .info-panel.about-text-entering .about-links a{animation-duration:300ms;}
}
.info-panel.about-text-entering .studio-line{animation-duration:300ms;}
.info-panel.about-text-exiting .about-line,.info-panel.about-text-exiting .about-links a,
.info-panel.about-text-exiting .studio-line{animation-duration:var(--about-exit-duration,110ms);}
@media(prefers-reduced-motion:reduce){
  .info-panel.about-text-entering .about-copy-source,.info-panel.about-text-exiting .about-copy-source{animation:none !important;}
}

/* V140: hide preserved project geometry during mobile About instead of tearing
   down and rebuilding the image/scroll layers at each toggle. */
@media(max-width:820px){
  body.mobile-about-open .viewer.about-mode{
    translate:0 0 !important;transform:none !important;animation:none !important;
  }
  .mobile-about-veil{transform:translateZ(0);backface-visibility:hidden;}
}

/* V141: iPad displays the native carousel, while desktop displays the direct
   image. Apply the same full-square artwork geometry to that visible layer. */
@media(min-width:821px){
  .ipad-swipe .viewer:not(.about-mode) .native-carousel .project-image:is(.square-slide,.plain-square-slide){
    inset:0;left:0;top:0;width:100%;height:100%;max-width:none;max-height:none;
    padding:0;aspect-ratio:1;object-fit:cover;transform:none;background:transparent;
  }
}

/* V142: resizing an iPad pane must not let native snap select another card. */
@media(min-width:821px){
  .ipad-swipe .viewer.ipad-aspect-resizing .native-carousel{
    overflow-x:hidden !important;scroll-snap-type:none !important;
    pointer-events:none !important;touch-action:none !important;
    scroll-behavior:auto !important;overflow-anchor:none;
  }
}

/* V143: the transparent Radio Sakura poster sheets use the same light mount
   as the desktop viewer, including the native iPad and phone carousel layers. */
.viewer:not(.about-mode) > .project-image[data-white-mount="true"],
.viewer:not(.about-mode) .native-carousel .mobile-swipe-card[data-white-mount="true"],
.viewer:not(.about-mode) .native-carousel .mobile-swipe-card .project-image[data-white-mount="true"]{
  background-color:#efefec !important;
}

/* V144: end the mobile document at the archive's painted bottom, instead of
   the invisible layout space left by the shrinking sticky photograph. */
@media(max-width:820px){
  body:not(.mobile-about-open) .site-shell.mobile-archive-bounded{
    height:var(--mobile-archive-height);overflow:clip;
  }
}

/* v52: enforce legible black Back/Indietro in About, even if JS supplies an inline contrast color. */
.viewer.about-mode .about-back,
.viewer.about-mode .about-back:hover,
.viewer.about-mode .about-back:focus-visible { color: #000000 !important; -webkit-text-fill-color: #000000 !important; }

/* Cate Lumina — muted autoplay videos with static image fallback. */
.project-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:2;pointer-events:none;display:block;opacity:0;transition:opacity .15s linear;background:transparent;}
.project-video.is-playing{opacity:1;}
.project-video[hidden]{display:none !important;}
.viewer.about-mode>.project-video{display:none !important;}
.viewer.native-carousel-ready:not(.about-mode)>.project-video{display:none !important;}
.mobile-swipe-card>.project-video{z-index:3;transform:none;}
@media(max-width:820px){.viewer.mobile-collapsed:not(.about-mode)>.project-video{height:100%;object-fit:cover;}}

/* Catalina: keep the top-right Next label white in both languages. */
.viewer[data-current-project="cate-lumina-catalina"] .next-label { color: #fff !important; }
